| Example | |
|
| Solution | |
Implement the classes using virtual classOf() functions that return unique identifiers, or test the success of a dynamic cast.
|