CMSC 202 Polymorphism Inheritance and Polymorphism Inheritance allows us to define a family of classes that share a common interface. Polymorphism allows us to manipulate…