Chapter 31 Flashcards

1
Q

What is multiple inheritance

A

A class inherit more than one class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Does derived class can inherit from public base class as well as private and public base class

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Does object of derived class can perform all the tasks that an object of base class perform

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is virtual inheritance

A

In virtual inheritance there is exactly one copy of the anonymous base class object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the solution of diamond problem

A

Use of virtual inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly