Question: Please solve this in Java 2. Define an interface (Eatable), which defines an abstract method: void eato; Define a test class (EatableDemo), provide two methods
Please solve this in Java
2. Define an interface (Eatable), which defines an abstract method: void eato; Define a test class (EatableDemo), provide two methods in the test class One method is: use Eatable(Eatable e) One method is the main method, call the useEatable method in the main method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
