Default how i can do this in java main and class point
ssssami ssssamy
Greenhorn
Joined: Sep 23, 2010
Posts: 1
posted
0
write a class named Point that include two integer fields x and y and the following methods...
1. a constructor with no parameters that set both x=y=0
2. a constructor with one parameter a that sets x=y=a
3. a constructor with two parameters a,b that sets x=a and y=b
4. two get methods to return x and y
5. two set methods to set a new values to x and y
6. getLocation method which return a string of the location of the point
after that build a main method in which great three points from the three different constructors and print out its x-y values and location
please any one help me i need this program use netbeans