 |
|
|
|
|
A Word About Memory |
|
|
|
| |
 |
|
|
|
|
Arrays of Pointers |
|
|
|
| |
 |
|
|
|
|
Declaring Arrays on the Free Store |
|
|
|
| |
 |
|
|
|
|
A Pointer to an Array Versus an Array of Pointers |
|
|
|
| |
 |
|
|
|
|
Pointers and Array Names |
|
|
|
| |
 |
|
|
|
|
Deleting Arrays on the Free Store |
|
|
|
| |
 |
|
|
|
|
char Arrays |
|
|
|
| |
 |
|
|
|
|
strcpy() and strncpy() |
|
|
|
| |
 |
|
|
|
|
String Classes |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Q&A |
|
|
|
| |
|
|
|
|
|
Part V
Inheritance and Polymorphism |
|
|
|
| |
| |
 |
|
|
|
|
What Is Inheritance? |
|
|
|
| |
 |
|
|
|
|
Inheritance and Derivation |
|
|
|
| |
 |
|
|
|
|
The Animal Kingdom |
|
|
|
| |
 |
|
|
|
|
The Syntax of Derivation |
|
|
|
| |
 |
|
|
|
|
Private Versus Protected |
|
|
|
| |
 |
|
|
|
|
Constructors and Destructors |
|
|
|
| |
 |
|
|
|
|
Passing Arguments to Base Constructors |
|
|
|
| |
 |
|
|
|
|
Overriding Functions |
|
|
|
| |
 |
|
|
|
|
Overloading Versus Overriding |
|
|
|
| |
 |
|
|
|
|
Hiding the Base Class Method |
|
|
|
| |
 |
|
|
|
|
Calling the Base Method |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Q&A |
|
|
|
| |
|
|
|
|
|
Hour 17
Polymorphism and Derived Classes |
|
|
|
| |
 |
|
|
|
|
Virtual Methods |
|
|
|
| |
 |
|
|
|
|
How Virtual Member Functions Work |
|
|
|
| |
 |
|
|
|
|
You Can't Get There from Here |
|
|
|
| |
 |
|
|
|
|
Slicing |
|
|
|
| |
 |
|
|
|
|
Virtual Destructors |
|
|
|
| |
 |
|
|
|
|
Virtual Copy Constructors |
|
|
|
| |
 |
|
|
|
|
The Cost of Virtual Methods |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Q&A |
|
|
|
| |