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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!