i need help putting this into plain code that I can copy/paste. Please help! This is for java by the way
i need help putting this into plain code that I can copy/paste. Please help! This is for java by the way
Code:
Below is the inheritance Hierarchy
ProduceItem.java :public class ProduceItem{ /* fields and methods omited for brevity */ }
**************************************
FoodItem.java :
public class FoodItem extends ProduceItem {
/* fields and methods omited for brevity */
}
*****************************************
BakeryItem.java :
public class BakeryItem extends FoodItem {
/* fields and methods omited for brevity */
}
********************************************
FruitItem.java :
public class FruitItem extends FoodItem {
/* fields and methods omited for brevity */
}
*********************************************
FrenchBreadItem.java :
public class FrenchBreadItem extends BakeryItem {
/* fields and methods omited for brevity */
}
Step by step
Solved in 2 steps