Description Write a class encapsulating the concept of a circle, a circle has th
ID: 3896390 • Letter: D
Question
Description Write a class encapsulating the concept of a circle, a circle has the following attributes: a Point representing the center of the Circle,and a none negative number-the radius of the circle. Include constructor, the accessors and mutators, perineter, area nethods, and overwrite toString methods Here are the outline of the classes you need to define Circle (the class name must be naned as Circle.Java) 118 10 Taken 5/18 Taken None data nembers center (Point type), radius (double) constructors takes two paraneter (Point center, double radius) and the no paraneter 20/18 Taken constructor which sets its center to (1.8, 1.0) and nadas to 1.? a circle radius must be within the range (, 2s), otherdse set to its default radlus (3.0 methods: all getter and setter nethods perineter returns the perimeter of the circle area return the area of the circle toString returns the circle Infornation as follou Radius: 1.00 Center[1.00, 1.00] Perineter: 6.28 Area: 3.14 Point st be named as Pointa) dste enber (double for axis) and y (double for y-ais 11 getter and setter nethods constructor, to pa-aneters to set × y, and n no parsneter constructor ulth detsult value: xx) )-); DOLL F11 Priscr Insert Delee Poup PgDn Home End Backspace Lock 5 8 9 0 Enter 4 5 6 F GH ShiftExplanation / Answer
Following is the answer:
Circle.java
public class Circle {
Point.java
CircleTester.java