Question: 21 - Following classes are given. In the test class the following object is created. T objectT=new T (Object); What will be displayed on the

21 - Following classes are given. In the test class the following object is created. T objectT=new T ("Object"); What will be displayed on the screen? public class A public A(){ System.out.print("A"); } } public class C extends A{ public CO System.out.print("C"); } public C(String name){ System.out.print(name); } } public class Textends C{ public T() { System.out.print("T"); } public T (String name) { super(name); System.out.println("T constructed"); } a) T constructed b) A Object T constructed C) O A Object d) O Object T constructed Bo brak
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
