Chapter 23 Flashcards
What happen when child class constructor call, does parent class constructor calls first or child class constructor
parent class constructor
What is base class initialization mechanism
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.
What is destructor calling order in inheritance
derive class destructor calls first and then base class constructor called.
What is protected access modifiers/members
The publicly drive class can access members of its base class.
What is static type
Static typed programming languages are those in which variables need not be defined before they’re used.
What is IS kind of relationship
When we point base class pointer to derive class object