Assignment 11
Using the class B as stated above as a base class, construct a derived class:
a. T that treats p and q has base and height of a triangle and supports a method that gives area.
b. R that treats p and q has length and breadth of a rectangle and supports a method that gives its area.
PS: The program should be coded in C++.
|