Hi, i need help in java program.
• Implement the 5 classes with a “name” data field and“toString(): String” method. The return value of the toString()method must contain the class name, and the value of the “name”data field.
• Add method “getApplePieRecipe(): String” to the Appleclass.
• Add method “getOrangeJuiceRecipe(): String” to the Orangeclass.
• Write a FruitClient class where you design a few statements todemonstrate 1) polymorphisms, 2) dynamic binding, and 3)down-casting and up-casting. For each, write a comment explain howthe statements you wrote demonstrate it. Be sure to use instanceofwhen doing down-casting
i will post program i have so far
Fruit class:
public class Fruit
PayPal Gateway not configured
PayPal Gateway not configured