| Example | |
|
| Solution | |
Do not cast a
pointer of one class to the a pointer of a class it does not inherit
from. To avoid errors, do not use pointers for down casting. Use
virtual functions instead.
|