When an object of class A is created, the constructor of class B is called first since A extends B, printing "B Class Constructor Called ". Then the constructor of class A is called, printing "A Class Constructor Called ". The main method in class C creates an object of class A, causing the constructors of both A and B to be called in order.
When an object of class A is created, the constructor of class B is called first since A extends B, printing "B Class Constructor Called ". Then the constructor of class A is called, printing "A Class Constructor Called ". The main method in class C creates an object of class A, causing the constructors of both A and B to be called in order.
When an object of class A is created, the constructor of class B is called first since A extends B, printing "B Class Constructor Called ". Then the constructor of class A is called, printing "A Class Constructor Called ". The main method in class C creates an object of class A, causing the constructors of both A and B to be called in order.