Question:
Design a class to overload a function area() as follows:
(i) double area(double a. double b, double e) with three double arguments, returns the
area of a scalene triangle using the formula:
![]()
where
![]()
(ii) double area(int a, int b, int height) with three integer arguments, returns the area of a trapezium using the formula:
![]()
(iii) double area(double diagonal1, double diagonal2) with two double arguments, returns
the area of a rhombus using the formula:
![]()
C. Sir| Created: 18-Apr-2019 | Updated: 18-Apr-2019|ICSE2014
