Design a class to overload a function area() as follows: a. double area(double r, double h)- with radius r as and height h, returns the area of a cylinder using the formula. A= 2*π*r*h + 2*π*r*r b. double area(double r)- with radius r , returns the area of a sphere using the formula. A= 4*π*r*r c. double area(double l, double b, double h)- with length l, breadth b, and height h returns the area of a cuboid using the formula. A=2(lb+bh+hl)
Answers
Answered by
1
Answer:
pls mark as Brainliest answer and follow me
Attachments:
Answered by
5
Answer:
I hope it helpful to you..
Attachments:
Similar questions