Write a Print method to display the variables when called.

Java Question

Answer the following questions:

Page 4

Question 1.1. (T Cos 1–8) 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 called.

Write a test program to test it. (Points : 20)

Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page:
 Total: