Page 1 of 1

4 10 Create a base class SHAPE and derived classes TRI and RECT from the base class. Let a function get_data() be define

Posted: Sat May 14, 2022 2:37 pm
by answerhappygod
4 10 Create A Base Class Shape And Derived Classes Tri And Rect From The Base Class Let A Function Get Data Be Define 1
4 10 Create A Base Class Shape And Derived Classes Tri And Rect From The Base Class Let A Function Get Data Be Define 1 (28.43 KiB) Viewed 41 times
please solve correctly in c++ language please
4 10 Create a base class SHAPE and derived classes TRI and RECT from the base class. Let a function get_data() be defined in the base class to initialize the base class data members and a virtual function display_area() to display the areas of the figures. Using the classes defined above design a program to print the area interactively by accepting the dimensions in float value.