Computer Science, asked by satyapavan404, 7 months ago

27. In multiple inheritance, if class C inherits two classes A and B as follows, which class constructor will be
called first? class A{ }; class B{}; class C: public A, public B{ };
O A. AO
O B. BO
O C.CO
O D. Can't be determined​

Answers

Answered by rathodkhushi00
0

Answer:

I am sorry I will help you next time I

Explanation:

please mark me brainlist

Answered by studay07
0

Answer:

O A. AO

reason:

  • the constructors in multiple inheritance are called in the sequence in which they are written to be inherited.
  • Constructor of class A will be called first. This is because the constructors in multiple inheritance are called in the sequence in which they are written to be inherited. Here A is written first, hence it is called first.
Similar questions