1- Create a class called Point that includes two instance variables as follows: An x coordinate and a y coordinate of type integers, which are defined as private. A) Write two constructors for this class as follows: A default constructor that sets the instance variables to zero and a constructor that receives values for the instance variables and sets them. B) Write the set and get methods for the Point class to set and return the values of it instance variables. C) Write a toString() method for the Point that prints the class name (Point) and the value of its instance variables. Solution Desired Program with proper comments are given below: //Point class public class Point { //private member variables private int x_coordinates; private int y_coordinates; //default constructor public Point() { x_coordinates = 0; y_coordinates = 0; } //parameterised constructor public Point(int x, int y) { x_coordinates = x; y_coordinates = y; } //getter methods public int getXCoordinates() { return x_coordinates; } public int getYCoordinates() { return y_coordinates; } //setter methods public setXCoordinates(int x) { x_coordinates = x; } public setYCoordinates(int y) { y_coordinates = y; } } //class to test the Point class public class TestPointClass { public static void main(String[] args) { // creating Point class object and calling its methods Point p1 = new Point(); Point p2 = new Point(10, 20); System.out.println(\"The x_coordinates is: \" + p2.getXCoordinates()); System.out.println(\"The y_coordinates is: \" + p2.getYCoordinates()); p2.setXCoordinates(30); p2.setYCoordinates(40); System.out.println(\"The x_coordinates is: \" + p2.getXCoordinates()); System.out.println(\"The y_coordinates is: \" + p2.getYCoordinates()); } } .