Implement a class Circle whose constructor has a parameter to represent a circle’s radius. Define the methods getRadius, getArea, getCircumference, and toString. The latter method should return a string containing the area and circumference of the circle.
Test your class using a driver that creates two different circles and calls each method of each circle.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here