Question: Prepare a Point class that represents points on an x, y axis. The data members should be doubles x and y plus an int value called count that represents the number of points presently instantiated. Your class should have three constructors; a default constructor, a copy constructor, and another that allows you to set the x and y values when the Point object is created. Your class should have a finalize so that the count value always correctly reflects the number of objects presently instantiated.
Your class should have get and set methods for both instance variables. Your class should have an equals method that returns true when any object passed in as a parameter has the same values for x and y as the Point object whose method was called.
Lastly, your class should contain a toString method that prints the Point's values in the subsequent format: Point ( , ) where x value and y value are the values of x and y stored in the object.