CS 2133: Data Structures OOP, Virtual Functions and Inheritance Inheritance C++ Classes provide a way to enforce the walls of data abstraction by encapsulating the data and…