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.
4 10 Create a base class SHAPE and derived classes TRI and RECT from the base class. Let a function get_data() be define
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
4 10 Create a base class SHAPE and derived classes TRI and RECT from the base class. Let a function get_data() be define
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!