Create a base class called shape


Create a base class called shape.use this class to store two double type value that could be used to compute the area of figures. Derive two specific classes called sphere and cone from the base class shape. Member function
display_volume () to compute and display the area figures . make disply_volume() as a virtual function and readefine this function in the derived class to suite their requirements.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Create a base class called shape
Reference No:- TGS0428573

Expected delivery within 24 Hours