Commit de88d7ee6054aeb7fee2edacd11286241f0c7ce9

Authored by Imanol-Mikel Barba Sabariego
1 parent 90d375bf

BEFORE XY

git-svn-id: svn://imanolbarba.net/PAD@10 c2ee353e-ed0d-4329-bf56-03aec153487f
readline/bin/pad/prac1/Coordinate.class 0 → 100644
No preview for this file type
readline/src/pad/prac1/Coordinate.java 0 → 100644
  1 +package pad.prac1;
  2 +
  3 +public class Coordinate
  4 +{
  5 + private int xPos;
  6 + private int yPos;
  7 +
  8 + public Coordinate(int x, int y)
  9 + {
  10 + xPos = x;
  11 + yPos = y;
  12 + }
  13 +
  14 + public int x()
  15 + {
  16 + return xPos;
  17 + }
  18 +
  19 + public int y()
  20 + {
  21 + return yPos;
  22 + }
  23 +
  24 + public void setX(int x)
  25 + {
  26 + xPos = x;
  27 + }
  28 +
  29 + public void setY(int y)
  30 + {
  31 + yPos = y;
  32 + }
  33 +}
... ...