Implement a class Cylinder whose constructor has a parameter to represent the radius of a cylinder’s base and another parameter to represent a cylinder’s height. Define the methods getRadius, getAreaOfBase, getCircumference, getHeight, getVolume, getSurfaceArea, and toString. Do not use the class Circle.
Test your class using a driver that creates two different cylinders and calls each method of each cylinder.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here