-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMovie.java
More file actions
31 lines (23 loc) · 701 Bytes
/
Copy pathMovie.java
File metadata and controls
31 lines (23 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.example.cleancoder.functionstructure.movie;
public abstract class Movie {
public static final int CHILDRENS = 2;
public static final int NEW_RELEASE = 1;
public static final int REGULAR = 0;
private String title;
private int pricecode;
public Movie(String title, int priceCode) {
this.title = title;
pricecode = priceCode;
}
public int getPriceCode() {
return pricecode;
}
public void setPriceCode(int arg) {
pricecode = arg;
}
public String getTitle() {
return title;
}
abstract double determineAmount(int daysRented);
abstract int determineFrequentRentalPoint(int daysRented);
}