update,
This commit is contained in:
16
_resources/it114105/itp4510/Assignment/22-23/MenuItem.java
Normal file
16
_resources/it114105/itp4510/Assignment/22-23/MenuItem.java
Normal file
@@ -0,0 +1,16 @@
|
||||
public class MenuItem {
|
||||
private String food;
|
||||
|
||||
|
||||
public MenuItem(String food){
|
||||
this.food = food;
|
||||
}
|
||||
|
||||
public String getMenuItemFood(){
|
||||
return this.food;
|
||||
}
|
||||
|
||||
public String toString(){
|
||||
return food;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user