Question: 19 The following Java code presents three class definitions and four object instantiations (below the line). What is displayed by the four printin statements at

 19 The following Java code presents three class definitions and four

19 The following Java code presents three class definitions and four object instantiations (below the line). What is displayed by the four printin statements at the end? public class Vertebrate public String whoAreYou0 ( return "Vertebrate",) public class Mammal extends Vertebrate public String whoAreYou0 ( return "Mammal", ) public class Canine extends Mammal public String whoAreYou0 ( return "Canine" ) Vertebrate v0 = new Vertebrate(); Vertebrate v1- new Mammal); Mammal m - new Canine); Vertebrate v2 new Canine(); System.out.printin (v0.whoAreYou)) System.out.println (v1.whoAreYou)), System.out.println(m.whoAreYou) System.out.println(v2.whoAreYou)); O Vertebrate, Vertebrate, Mammal, Vertebrate O Vertebrate, Mammal, Canine, Vertebrate O Vertebrate, Mammal, Canine, Canine

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!