Computer Science, asked by govindm200917, 1 month ago

1. Write a class to overload a function volume() to perform the following:
a. To print the volume of cube(side*side*side)
b. To print the volume of cuboid(length*breadth*height)
c. To print the volume of sphere(4/3πr3)
Write the main method to call the above methods.

Answers

Answered by mjkhichi5
0

Answer:

1. Write a class to overload a function volume() to perform the following:

a. To print the volume of cube(side*side*side)

b. To print the volume of cuboid(length*breadth*height)

c. To print the volume of sphere(4/3πr3)

Write the main method to call the above methods

Answered by ankit6194
0

Answer:

1. Write a class to overload a function volume() to perform the following:

a. To print the volume of cube(side*side*side)

b. To print the volume of cuboid(length*breadth*height)

c. To print the volume of sphere(4/3πr3)

Write the main method to call the above methods

Similar questions