One of the important topics of Object Oriented Programming is Inheritance. Inheritance allows us to define a class in terms of another class, which allows us in the reusability of the code.Check out the code below: class Triangle{ public: void triangle(){ cout<<"I am a triangle\n"; } ...