-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilm.java
More file actions
50 lines (44 loc) · 1.47 KB
/
Copy pathFilm.java
File metadata and controls
50 lines (44 loc) · 1.47 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
public class Film {
String title;
String producer;
int yearProduce;
double productionCost;
double overall;
public Film(String titleName, String producerName, int year, double cost) {
title = titleName;
producer = producerName;
yearProduce = year;
productionCost = cost;
}
public Film(Film a) {
title = a.title;
producer = a.producer;
yearProduce = a.yearProduce;
productionCost = a.productionCost;
}
public String getTitle() {return title;}
public String getProduceString() {return producer;}
public int getYearProduce() {return yearProduce;}
public double getProductionCost() {return productionCost;}
public double getOverall() {return overall;}
public void setTitle(String t) {title = t;}
public void setProducer(String p) {producer = p;}
public void setYearProduce(int y) {yearProduce = y;}
public void setProductionCost(double proCost) {productionCost = proCost;}
public void setOverall(double o) {overall = o;}
public double overallCost() {
overall = productionCost*1.07;
return overall;
}
public boolean moreExpensive(double a, double b) {
if (a>b)
return true;
else
return false;
}
public int filmAge() {
int age;
age = 2021-yearProduce;
return age;
}
}