Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Math;
- public class Point(int x, int y)
- {
- public int X { get; } = x;
- public int Y { get; } = y;
- public Point Move(int dx, int dy)
- {
- return new Point (X + dx, Y + dy );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement