If class C inherits class B. And B has inherited class A. Then while creating the object of class C, what will be the sequence of constructors getting called?
(a) Constructor of C then B, finally of A
(b) Constructor of A then C, finally of B
(c) Constructor of C then A, finally B
(d) Constructor of A then B, finally C
The question was asked at a job interview.
My question comes from Constructors topic in section Constructors and Destructors of Object Oriented Programming