Create an abstract
class "shape" with one pure virtual function print, that outputs
the name of the shape. Derive class circle and rectangle from the shape. In the
main function create an array that can hold any type of the derived classes. Put
one circle and one rectangle into this array. Print the names of the objects.
Delete objects (that means that you have to have a destructor . You do not have
to put any code in the destructor, just cout name of
the class, that it belongs to.
Contact me for an efficient, perfect,
well documented development of your project according
to 100% accuracy and requirements, with dedicated
support. Thanks