Design a java class to overload a function volume() as follows:-
i) void volume( int s) computes the volume of a cube.
ii) void volume(float r) computes the volume of a sphere.
iii) void volume(int l,int b,int h) computes the volume of a cuboid
Please no spam
Answers
Answered by
0
Answer:
Hey check the below link . it will help u
Explanation:
https://javatutoring.com/volume-of-sphere-java-program/
Similar questions