Question: You will write two java files for this assignment: MyCircle.java, and MyCircleTester.java. The MyCircle.java file is the primary interest. It will create an actual class,

 You will write two java files for this assignment: MyCircle.java, andMyCircleTester.java. The MyCircle.java file is the primary interest. It will create anactual class, the first one that we have written this semester. The

You will write two java files for this assignment: MyCircle.java, and MyCircleTester.java. The MyCircle.java file is the primary interest. It will create an actual class, the first one that we have written this semester. The MyCircle class is similar to the MyRectangle class that we discussed in the lecture. The MyCircle class should meet these criteria: Three instance variables double radius o double x double y Eight methods: Six of the methods are simple: getter's and setter's for x, y, and radius. There should also be a getArea method that returns the area (derived from the radius) A doesOverlap method. This method should accept a MyCircle as an argument, and return true if this circle overlaps the circle that the method was invoked on. [Note: two circles overlap if the sum of their radius' is greater than the distance between their centers. Sometimes requirements like these are displayed in a simple two box diagram line the one below

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!