I think you are overthinking.
No “extends” required.
Just make a class Point to store the data. You can (but don’t have to) make a class Grid to work with the points.
I think you are overthinking.
No “extends” required.
Just make a class Point to store the data. You can (but don’t have to) make a class Grid to work with the points.