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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started