Hour 18. Making Use of Advanced Polymorphism
What You’ll Learn in This Hour:
What casting down is and why you might want to do it
What abstract data types are
What pure virtual functions are
Problems with Single Inheritance
In previous hours, derived objects were treated polymorphically with their base classes. You saw that if the base class has a member function speak()
that is overridden in the derived class, a pointer to a base object that ...
Get Sams Teach Yourself C++ in 24 Hours, Sixth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.