Design a class to overload a function volume() as follows:
(i) double volume(double r) – with radius ‘r’ as an argument, returns the volume of sphere using the formula:
v = 4 / 3 × 22 / 7 × r3
(ii)double volume(double h, double r) – with height ‘h’ and radius ‘r’ as the arguments, returns the volume of a cylinder using the formula:
v = 22 / 7 × r2 × h
(iii) double volume(double l, double b, double h) – with length ‘l’, breadth ‘b’ and height ‘h’ as the arguments, returns the volume of a cuboid using the formula:
v = l × b × h
who answers correctly will be marked as brainlist
Answers
Answered by
0
Answer:
1.Love For All, Hatred For None.
2.Aspire to inspire before we expire.
3.Everything you can imagine is real.
4.Whatever you do, do it well.
5.Die with memories, not dreams.
6.Never regret anything that made you smile.
7.Every moment is a fresh beginning.
8.Change the world by being yourself.
mark me brainliest.
bye.
Similar questions
Math,
4 months ago
Computer Science,
8 months ago
Science,
8 months ago
Math,
11 months ago
Social Sciences,
11 months ago