Object-Oriented Programming with Polymorphism
Lecture no. 21 from the course: Introduction to C++: Programming Concepts and Applications
Taught by Professor John Keyser | 32 min | Categories: The Great Courses Plus Online Professional Development Courses
Study a key object-oriented feature called polymorphism, which means “many shapes” and refers to the ability of a class to be used in multiple ways. Start with a superclass that is specialized into multiple subclasses, each of which has a different implementation. Learn to define virtual functions for the superclass, leading to diverse properties in the subclasses.