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
0
Answer:
I am sorry I will help you next time I
Explanation:
please mark me brainlist
Answered by
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
Computer Science,
3 months ago
Math,
3 months ago
English,
3 months ago
Science,
7 months ago
Computer Science,
7 months ago
English,
1 year ago