Professional Documents
Culture Documents
Vegetable: Thanh Long, 10.00, 40
Vegetable: Thanh Long, 10.00, 40
,
`Vegetable` is a superclass and `LeafyVegetable` is a subclass) with the following
specifications:
Vegetable
- name: String
- pricePerUnit: double
+ Vegetable(String name, double pricePerUnit) – constructor
LeafyVegetable
- daysToHarvest: int
+ LeafyVegetable(int daysToHarvest, String name, double pricePerUnit) – constructor