Question: Hello I need help creating the follwing program in JAVA! For this module you are exploring the infant stages of object-oriented programming by create abstract
Hello I need help creating the follwing program in JAVA!
For this module you are exploring the infant stages of object-oriented programming by create abstract data types. For this assignment, you are to create a class called Circle.
Circle should have a double attribute called radius. (5pts)
The class should have appropriate getters and setters. (20pts)
A no-arg and a parameterized constructor. (20pts)
Also include the following member method: getArea()(10pts), getCircumference() (10pts) and getDiameter()(10pts).
Write a demo program that creates an object of the Circle class you created and demonstrates uses of the methods defined.
Circle object (10pts)
Call the setters after user input (5pts)
Call the getter to output the answers (5pts)
You program should declare a package named circle. (5pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
