Question: 1 . Create an Interface Edible that has two methods: abstract method howToEat ( ) and default method howToCook ( ) both return a String.
Create an Interface Edible that has two methods: abstract method howToEat and default method howToCook
both return a String.
Create classes Sushi and Soup that both has at least one unique instance data field and an instance method choose
the data field and its type yourself
Add getters, setters and at least two constructors to both classes.
Add toString method to both classes.
Both classes should implement the Edible Interface...........................................................................................................
Create two instances of Sushi and two instances of Soup and test all available functionality all their methods Create
an array of size and add all of these into this array.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
