Chapter 23 Flashcards

1
Q

What happen when child class constructor call, does parent class constructor calls first or child class constructor

A

parent class constructor

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

What is base class initialization mechanism

A

If there is no constructor on parent class and child class constructor called, we can explicitly call base class constructor from child class. So if there is no constructor define in parent class, then we can still call it from child class explicitly. this is called base class initialization mechanism.

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

What is destructor calling order in inheritance

A

derive class destructor calls first and then base class constructor called.

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

What is protected access modifiers/members

A

The publicly drive class can access members of its base class.

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

What is static type

A

Static typed programming languages are those in which variables need not be defined before they’re used.

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

What is IS kind of relationship

A

When we point base class pointer to derive class object

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