5.4k views
1 vote
Which of the following would be the most appropriate choice for a method in a Cylinder class? (Points : 5) InputRadius()

Volume()
Radius()
Area()

User Fenda
by
6.9k points

1 Answer

1 vote

Answer: Volume()

Explanation: As the class name is mentioned as the Cylinder class() , it can be easily predicted that the dimension of the cylinder is mentioned in the class .The cylinder in general is the round figure that has top and bottom to enclose it. So ,Volume() is the most appropriate function related with cylinder .

Other options are incorrect because radius() function is for the determining of the radius and area() function is for area determination of cylinder ,which are used in the volume calculation .Thus the correct option is Volume() which requires both area and radius for the cylinder.

User The Smallest
by
5.6k points