Question: C++ please Write a C++ program that defines the following Geometric Classes: Point Class with the x and y coordinates. Circle Class with an 1,

Write a C++ program that defines the following Geometric Classes: Point Class with the x and y coordinates. Circle Class with an 1, y coordinates and radius. Cylinder Class with an x, y coordinates, radius and height. Add a display member function to each class that displays the attributes of the class. Add a data member which holds the class type (i.e. point,circle or cylinder). Add a static data member to each class that counts the number of objects created. In addition, provide a static member function which returns the number of objects created. Write a driver program that uses the following structure: Shapes Point ptArr[ MAX_SIZE); Circle cirArr( MAX_SIZE]: Cylinder cylArr[ MAX_SIZE]: Number of objects not to exceed MAX_SIZE of 10. Call the functions: displayPoints( Point ptArr(1), displayCircles(Circle cirArr(1) and displayCylinders(Cylinder cylArr) which invokes the display member function of each element in the array. Random Values: X, y: random #s between 0 and 10 radius: random # between 1 and 15 height: random #s between 1 and 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
