Create a class to represent a Circle type in java, which should have following:
• radius. Instance field of type double
• Constructor. that accept an argument for radius
• getRadius. public method that returns the radius of Circle
• getArea. Method that returns the area of Circle
Comments
Leave a comment