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
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment