Object Oriented Programming in Java - Old Questions

3. What are use of duper keyword? Write a java program to create base class Fruit which has name, taste and size as its attributes and method called eat() which describe name an its taste. Inherit the same in two other class Apple and Orange and override eat() method to represent each fruit 

5 marks | Asked in 2023