Create a base class Fruit which has name ,taste and size as its attributes. A method called eat() is created which describes the name of the fruit and its taste. Inherit the same in 2 other class Apple and Orange and override the eat() method to represent each fruit taste.
Answers
Answered by
3
jshsjshhdjsjdkjajskakhsjs
Answered by
0
Answer:
Ummm apne to pura ek para dediya
Similar questions