Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by Jakub on 6/25/2016.
- */
- public class Figure {
- public int x;
- public int y;
- public Figure(int x, int y) {
- this.x = x;
- this.y = y;
- }
- public int sum() {
- return getX() + getY();
- }
- public int getX() {
- return x;
- }
- public void setX(int x) {
- this.x = x;
- }
- public int getY() {
- return y;
- }
- public void setY(int y) {
- this.y = y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement