update,
This commit is contained in:
11
_resources/it114105/itp3914/Lab12/Ex4/Ex4.java
Normal file
11
_resources/it114105/itp3914/Lab12/Ex4/Ex4.java
Normal file
@@ -0,0 +1,11 @@
|
||||
public class Ex4 {
|
||||
public static void main(String [] args) {
|
||||
Food f = new Food("Rice", 3);
|
||||
Drink d = new Drink("Pepsi", 7, 250);
|
||||
Coffee c = new Coffee("Cappuccino", 13, 200, true);
|
||||
|
||||
System.out.println(f);
|
||||
System.out.println(d);
|
||||
System.out.println(c);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user