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

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

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!