Write access methods for the variables. Write a Print method to display the variables when
1) Write a class called point for the 2-D environment. Select appropriate variable(s). Write constructors. Write access methods for the variables. Write a Print method to display the variables when…