Question: C++ please Write a driver program which dynamically creates an array of 10 random Objects from Part A (i.e. Point, Circle or Cylinder objects) and
C++ please
Write a driver program which dynamically creates an array of 10 random Objects from Part A (i.e. Point, Circle or Cylinder objects) and then displays: o The total number of objects using the public static member function. O A description of each object using the public toString() member function. Use and create the following classes: An Object class that contains a pure virtual function toString(which returns a string describing the content of the derived class (i.e. x = ..., y = ... describes the point class etc.). In addition, display the total number of objects created using the public static member function. O A Point Class is a class with the x and y coordinates that is derived from the Object class. O A Circle Class is derived from the Point class with a radius. O A Cylinder Class is derived from the Circle class with a height. o All data members in these classes must be declared as "private:" Write a driver program which dynamically creates an array of 10 random Objects from Part A (i.e. Point, Circle or Cylinder objects) and then displays: o The total number of objects using the public static member function. O A description of each object using the public toString() member function. Use and create the following classes: An Object class that contains a pure virtual function toString(which returns a string describing the content of the derived class (i.e. x = ..., y = ... describes the point class etc.). In addition, display the total number of objects created using the public static member function. O A Point Class is a class with the x and y coordinates that is derived from the Object class. O A Circle Class is derived from the Point class with a radius. O A Cylinder Class is derived from the Circle class with a height. o All data members in these classes must be declared as "private
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
