Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
6 Cards in this Set
- Front
- Back
What is the original class called?
|
Base class
Parent class |
|
What is the class that inherits from the original class called?
|
Derived class
Child class |
|
Does the derived class access the functions of the base class?
|
Yes as long as the functions of the base class have been declared as public, and that we are using public inheritance
|
|
What is the syntax for declaring a derived class?
|
class CDerived:public CBase
{ public: private: } |
|
Can the derived class point to the base class?
|
NO
|
|
Can a pointer of the base class point to a derived class?
|
Yes, it can point to any class ultimately derived from it no matter how many inheritance links have occured.
**Only methods of the base class can be invoked ***If a function has the same name its the function of the base class that is invoked. |