[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C++ Programming :: Objects and Classes - Discussion

Home > C++ Programming > Objects and Classes > MCQs Questions Discussion

7 / 41

Choose the correct option.

Which of the following class constructor will invoked first?

ABase class

BVirtual base class

CAbstract class

DDerived class

Answer: Option (Login/Signup)

Show Explanation

In general inheritance, the constructor of base class will be invoked first and then the constructor of derived class will be invoked.

In multiple inheritance, base classes constructors are executed in the order of the inheritance and then the derived class constructor is called.

In multilevel inheritance, the constructor of virtual base class will be executed first.

Asked In :: Societe Generale

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here