Write a class called point that has attributes and methods to model an (x,y) coordinate in a 2-D environment. Select appropriate variable(s). Write a default and parameterized constructor. Write set and get methods for the variables. Write a Print method to display the variables when called. Write a test program to test the methods.
Get Free Quote!
256 Experts Online