Object Oriented Programming in Java - Old Questions
Question Answer Details
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
Answer
AI Generated Answer
AI is thinking...