Question: Question 9 3 pts What are the errors in the following code for 'IceCream' class? (Hint: The errors are all in the 'equals' method and

Question 9 3 pts What are the errors in the following code for 'IceCream' class? (Hint: The errors are all in the 'equals' method and there are 3] class IceCream extends Food { private String flavour; public String getFlavour() { return this. flavour; } public boolean equals (IceCream iceCream) { return this. flavour == icecream.flavour; } Edit View Insert Format Tools Table 12pt Paragraph U ATV D lili == TO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
