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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post 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 40 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply