Question: (A) a point is inside the circle. (B) a circle is inside another circle. (C) a circle overlaps another circle. Write a test program for
(Geometry: The Circle2D class) Define the circle2D class that contains: Two double data fields named and y that specify the center of the circle with constant get functions. A double data field radius with a constant get function. A no-arg constructor that creates a default circle with (0, o) for (x, y) and 1 for radius. L A constructor that creates a circle with the specified x, y, and radius. A constant function getArea() that returns the area of the circle. circle A constant function getPerimetero that the of the A constant function contains (double x, double y) that returns true if the specified point (x, y) is inside this circle. See Figure 11.8a. that returns A constant function contains (const Circle2D& circle true if the specified circle is inside this circle. See Figure 11.8b. that returns A constant function overlaps (const Circle2D& circle) true if the specified circle overlaps with this circle. See Figure 11.8c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
