Question: Write a class called Point with two private data: Xcord, and Ycord Then create a class Circle derived from class Point and a data called
Write a class called Point with two private data: Xcord, and Ycord
Then create a class Circle derived from class Point and a data called radius.
Finally create a class called Cylinder derived from circle with these data: name and height.
In the main function get the values for name, coordinates of the center of the base of cylinder,
and its radius and height from the user. Create an object based on the values that the user has
given. Using the member functions of the classes you had created, print cylinder .... (mention
name of cylinder) Has a surface area of ..... and a volume of .....
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
