Answer to Question #139088 in C++ for tanvi

Question #139088
Create
a base class Shape .






Use
this Class to store two double type values that could be used to
compute areas.






Derive
two
Classes Triangle
and Rectangle from the base Class Shape.






Define
member functions get_data () to initialize the data members in the
base class and add another member function display_area () to compute
the area.






Write
a C++ program to implement the class that accepts dimensions and
calculate area of triangle and
rectangle.






Use
the concept of function Polymorphism.


(Hint:
get_data() and display_area() will be overloaded functions)
1
Expert's answer
2020-10-19T08:12:18-0400
Dear tanvi, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS