Object Oriented Programming (OOPs)
© examsiri.com
Question : 36 of 72
Marks:
+1,
-0
Given:
What is the result?
1. class TestA {
2.   public void start() { System.out.println("TestA"); }
3. }
4. public class TestB extends TestA {
5.   public void start() { System.out.println("TestB"); }
6.   public static void main(String[] args) {
7.    ((TestA)new TestB()).start();
8.   }
9. }What is the result?
Go to Question: