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 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
Get step-by-step solutions from verified subject matter experts
