Question: A4 Given the following class diagram, interfaces and classes that model various kinds of animals. What will be the errors in the main method? For

 A4 Given the following class diagram, interfaces and classes that model

A4 Given the following class diagram, interfaces and classes that model various kinds of animals. What will be the errors in the main method? For each error indicate the line number of each incorrect statement and explain in one sentence why it is wrong 1 interface Animal int number of lep(); interface Mamal extende Animal > Animal numberOfLegs 0:int 10 11 + interface Reptile extende Animal . class Cat implements Mammal public int amber Orlags() return; ) ) Cat 1 19 Snake numberOflegs int *numberOfLegsont 21 Tiger public class Animals public static void main(String args) Ininal antall ansala, animals Mammal samall; Cat Cat Shake shakel Tiger tiger Listallsti, 112, antsalt - Tiger: snakel w salo: anima12 Antal: sv Tiger: maal! - Shake tiger Ball animal catt w ArrayList

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!