Point

Write a class called point
for the 2-D environment with attributes for the x and y coordinates..
Select appropriate variable(s).
Write constructors.
Write access methods for the variables.
Write a Print method to display the variables when called.
Write a test program to test it
Powered by