Write the following instance methods for the circle class


Problem

Suppose you are given the .class file and the following API page for the Point class.

Design a class called Circle that has the following private instance variables: center (of type Point) and radius (of type double).

Write the following instance methods for the Circle class:

1) A constructor that accepts two parameters, a Point and a double
2) A method called enlarge that adds 1 to the Circle's radius
3) A method called distance that returns the distance between the center of one Circle
object to the center of another Circle object
4) A method called getArea that returns the area of a Circl.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write the following instance methods for the circle class
Reference No:- TGS03261559

Expected delivery within 24 Hours