make a base class called figure that store the


Make a base class called figure that store the dimensions of several geometrical objects and compute their areas. Explain a function set_dim( ),a standard member  function and show_area( ), a virtual function. Write a C++ program that uses figure to explain three specific classes, called square, triangle, and circle. The program calculates and prints the area of objects belonging to these classes.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: make a base class called figure that store the
Reference No:- TGS0330750

Expected delivery within 24 Hours