Object Oriented Programming (OOPs)
© examsiri.com
Question : 17 of 72
Marks:
+1,
-0
Given:
What is the result when this code is executed?
class One {
  public One() { System.out.print(1); }
}
class Two extends One {
  public Two() { System.out.print(2); }
}
class Three extends Two {
  public Three() { System.out.print(3); }
}
public class Numbers{
  public static void main( String[] argv ) { new Three(); }
}What is the result when this code is executed?
Go to Question: