-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRestaurant.java
More file actions
56 lines (44 loc) · 1.47 KB
/
Restaurant.java
File metadata and controls
56 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
51
52
53
54
55
56
package model;
import interfaces.Classifiable;
import interfaces.Payable;
import interfaces.Visitable;
import java.util.Set;
public class Restaurant extends LocationWithBusinessHours implements Classifiable, Payable, Visitable {
private String classification;
private int entryFee;
public Restaurant(String longitude, String latitude, String name) {
super(longitude, latitude, name);
}
public Restaurant(String longitude, String latitude, String name, Set<OpeningTimes> openingTimes) {
super(longitude, latitude, name, openingTimes);
}
public Restaurant(String longitude, String latitude, String name, Set<OpeningTimes> openingTimes, String classification, int entryFee) {
super(longitude, latitude, name, openingTimes);
this.classification = classification;
this.entryFee = entryFee;
}
@Override
public String getClassification() {
return classification;
}
@Override
public void setClassification(String classification) {
this.classification = classification;
}
@Override
public int getFee() {
return entryFee;
}
@Override
public void setFee(int entryFee) {
this.entryFee = entryFee;
}
@Override
public String toString() {
return "Restaurant{" +
getOpeningTimes().toString() +
", classification='" + classification + '\'' +
", entryFee=" + entryFee +
'}';
}
}