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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!