21.3 Virtual and Nonvirtual Overriding -
wrapup
- Retain the virtual Keyword
- Once declared virtual, a method remains virtual in all
derived classes
- Heterogeneous Collections
- A vector of pointers can store values of any derived type
- Include Virtual Destructors
- If a class has a virtual method, define a virtual d'tor
prev
|top
|next