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
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
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
Social Sciences,
24 days ago
English,
24 days ago
Science,
24 days ago
Chemistry,
1 month ago
Math,
1 month ago
Computer Science,
9 months ago
Math,
9 months ago