Question: Workshop Questions 1. Write a program to create the classes Chicken and Fruit implement the Edible interface. You can now use the Edible interface
Workshop Questions 1. Write a program to create the classes Chicken and Fruit implement the Edible interface. You can now use the Edible interface to specify whether an object is edible. This is accomplished by letting the class for the object implement this interface using the implements keyword. Notation: The interface name and the method names are italicized. The dashed lines and hollow triangles are used to point to the interface. < > Edible Animal +howToEat(): String +sound(): String Chicken Tiger
Step by Step Solution
There are 3 Steps involved in it
Ediblejava public interface Edible String howToEat Animaljava public abstract class Animal public ab... View full answer
Get step-by-step solutions from verified subject matter experts
