Figure 19.3 Type-compatibility of Base and Derived Class Pointers
19.4 virtual FUNCTIONS
Virtual functions of base classes must be redefined in the derived classes. The programmer can define a virtual
function in a base class and can use the same function name in any derived class, even if the number and type
of arguments are matching. The matching function ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.