Question: 16. Following classes are given. In the test class the following object is created Tiger x= new Tiger(King); What will be displayed on the screen?
16. Following classes are given. In the test class the following object is created Tiger x= new Tiger("King"); What will be displayed on the screen? publics Annalt puble Animals System.out.print("" public class cat extends and publicat System.out.print(" Yumilyot cate puble Cat(String name) ystem.out.print" cat de 1 pub Tiger extended publie Tiger System.out.print(" Tiger constructed puble Tiger (Eng nam wuperman system.out.printin The Tiget constructed a) Cat named King The Tiger constructed b) The Tiger constructed Animal Cat named King Animal Cat named King The Tiger constructed Bo brak
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
