-
Notifications
You must be signed in to change notification settings - Fork 0
/
LicensedRestaurant.java
40 lines (35 loc) · 1.09 KB
/
LicensedRestaurant.java
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
import java.util.Date;
import java.util.List;
/**
* A representation of a LicensedRestaurant.
* @author Shahrukh
*
*/
public class LicensedRestaurant extends Restaurant {
private Date expiryDate;
/**
* Creates a LicensedRestaurant with the given name, neighborhood, price, and cuisine.
* @param name name of the new Licensed Restaurant
* @param hood neighborhood of the restaurant
* @param price price of the food
* @param cuisine food offered at restaurant
*/
public LicensedRestaurant(String name, String hood, String price, List<String> cuisines, Date date){
super(name, hood, price, cuisines);
this.expiryDate = date;
}
/**
* Returns the expiry date of LicensedRestaurant .
* @return expiry date
*/
public Date getExpiryDate() {
return expiryDate;
}
/**
* Sets the expiry date of this LicensedRestaurant to expiryDate.
* @param expiryDate the new expiry date of this LicensedRestaurant
*/
public void setExpiryDate(Date expiryDate) {
this.expiryDate = expiryDate;
}
}