Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package app8;
- public class Square {
- // (x,y) - левый верхний угол
- int x;
- int y;
- // сторона квадрата
- int a;
- //
- public Square(int x, int y, int a){
- this.x = x;
- this.y = y;
- this.a = a;
- }
- // alt + insert
- 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;
- }
- public int getA() {
- return a;
- }
- public void setA(int a) {
- this.a = a;
- }
- }
Add Comment
Please, Sign In to add comment