Computer Science, asked by krishnagupta6097, 3 months ago

1. Which type of inheritance is it?
2. Which class constructor will be called first when the object of class video wil be declared ?
3 write the members which can be eccessed by the object of class video

Answers

Answered by Vivienne0123
0

Q. 1 Answer:- “Multiple Inheritance” refers to the concept of one class extending (Or inherits) more than one base class. The inheritance we learnt earlier had the concept of one base class or parent. The problem with “multiple inheritance” is that the derived class will have to manage the dependency on two base classes.

Q. 2 Answer:- 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.

Similar questions