Question OOP-INH-0080
HardWhat is the order of constructor calls for class C : public A, public B?
- A.
A, then B, then C (the order in the base list)
- B.
B, A, C
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Inheritance question
What is the order of constructor calls for class C : public A, public B?
A, then B, then C (the order in the base list)
B, A, C
Sign up free to see the answer and a step-by-step explanation.
C, A, B
C, B, A