Chapter 24 Flashcards

1
Q

Can derive class constructor calls base class constructor first

A

Yes

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

Does base class anonymous object creates when we create an object on drive class

A

Yes

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

What is copy constructor

A

The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to: Initialize one object from another of the same type.

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

Does programmer explicitly call base class copy constructor from derive class copy constructor

A

Yes

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

What are 2 ways of calling base class assignment operator from derived class

A
  • Explicitly

- Implicitly

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