Files
_resources/it114105/itp4507/Assignment/20-21/src/OrderChineseLunchSet.java
louiscklaw 04dbefcbaf update,
2025-02-01 01:58:47 +08:00

26 lines
751 B
Java

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author jerrykwok
*/
public class OrderChineseLunchSet extends Order {
private String drinkCode;
private LunchSet lunchset;
public OrderChineseLunchSet(String drinkCode, String staffNumber, String officeLocation, LunchSet lunchSet) {
super(staffNumber, officeLocation);
this.lunchset = lunchSet;
this.drinkCode = drinkCode;
}
public String getOrderDetail(){
return "C: " + super.toSting() + lunchset.getMainDish() + ", Chinese Soup, " + ChineseStyleLunchSet.getDrink(drinkCode);
}
}