[Solved] : 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)


Expert Answer


Answer to : Question 139088

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?