Computer Science, asked by sakinaali32, 10 months ago

• Make a class named Fruit with a data member to calculate the number of fruits in a basket. Create two other class named Apples and Mangoes to calculate the number of apples and mangoes in the basket. Print the number of fruits of each type and the total number of fruits in the basket.

Answers

Answered by vedantmandave27
0

Answer:

apples and mangoes are fruits

Answered by ksathyamaha
0

types no. of fruits total

apple 7

21

mango 14

Similar questions