Daniel_04
New member
- Joined
- Nov 14, 2021
- Messages
- 4
- Programming Experience
- Beginner
I've been thinking about this task for 5 days and I can't solve it, can you help me?
Create a point class with the fields x and y field-static counter.
Create a ToTheRight method that increments x by 1 on each call.
Create a ToTheLeft method that reduces x by 1 on each call.
Create 3 instances.
Call the methods for each instance 2-3 times.
display how many movements the points have made.
Create a point class with the fields x and y field-static counter.
Create a ToTheRight method that increments x by 1 on each call.
Create a ToTheLeft method that reduces x by 1 on each call.
Create 3 instances.
Call the methods for each instance 2-3 times.
display how many movements the points have made.