Chapter 24 Flashcards
1
Q
Can derive class constructor calls base class constructor first
A
Yes
2
Q
Does base class anonymous object creates when we create an object on drive class
A
Yes
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.
4
Q
Does programmer explicitly call base class copy constructor from derive class copy constructor
A
Yes
5
Q
What are 2 ways of calling base class assignment operator from derived class
A
- Explicitly
- Implicitly