Question: Task 3: Implement a class Fruit which must have the following informational data Name color fruiting Season Implement 4 other classes from class Fruit Citrus

Task 3: Implement a class Fruit which must have the following informational data Name color fruiting Season Implement 4 other classes from class Fruit Citrus e.g. oranges and tangerines Stone Fruits e.g., peaches and apricots Berries e.g. strawberries FleshyFruits e.g., bananas and mangoes What other data can these classes have? What data will they inherit? Program setter and getter functions for these data fields Use polymorphism to hold references of different fruit types in a single collection or array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!