Introduction
c++,class。Pointcircle,,
,main。
Requirement
Define a class called Point.
The Point class should contain a constructor which takes float x and float y as parameters.
Save these arguments as class variables.
Give the class appropriate getters and setters.
Define a class called Circle.
The Circle class should contain a constructor which takes Point center and float radius as
parameters.
Save these arguments as class variables.
Give the class appropriate getters and setters.
The class should have a toString method which should return the contents of the class as a String in
the form. Circle at x:50, y:25, radius:20.
The Circle class should have an additional method called calculateArea() which returns the area of
the circle.
Create a Circle object and test it a number of times by changing the radius of the object and
calculating the area.
For example:
Circle at x:50.0, y:25.0, radius:20.0
Area: 1256.6371
Circle at x:50.0, y:25.0, radius:70.0
Area: 15393.805