By using pure virtual function, abstract class and interface, create a simple “shape” hierarchy in C++: a base class called Shape and derived classes called Circle, Square, and Triangle. In the base...



By using pure virtual function, abstract class and interface,create a simple “shape” hierarchy in C++: a base class called Shape and derived classes called Circle, Square, and Triangle. In the base class, make a virtual function called draw( ), and override this in the derived classes. Make a pointer of Shape and objects of derived class and call draw( ) through the base-class pointers, to verify the behavior of the virtual function.



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here