Chapter 31 Flashcards
1
Q
What is multiple inheritance
A
A class inherit more than one class
2
Q
Does derived class can inherit from public base class as well as private and public base class
A
Yes
3
Q
Does object of derived class can perform all the tasks that an object of base class perform
A
Yes
4
Q
If all classes in inheritance are public than the relationship will be Is a relationship
A
Yes. Public inheritance IS a kind of relationship.
5
Q
What is virtual inheritance
A
In virtual inheritance there is exactly one copy of the anonymous base class object.
6
Q
What is the solution of diamond problem
A
Use of virtual inheritance