Question: 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 AOC
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 AOC System.out.print("A"); public class Cextends Al public COX System.out.print("C"); 1 public C(String name) System.out.print(name); 3 1 public class Textends public TO System.out.print("T"); } public T (String name) super(name); System.out.println("T constructed"); 3) A Object b)Object T constructed O A Object T constructed Type here to search o 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
