Advertisement
sergAccount

Untitled

Jan 23rd, 2021
869
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package javaapplication21;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Square {
  13.     // св-ва
  14.     int x; // точка в который будет находиться наша фигура
  15.     int y;
  16.     //
  17.     int a;  // длина стороны квадрата    
  18.     // методы
  19.     // Alt + Insert
  20.     public int getX() {
  21.         return x;
  22.     }
  23.     public int getY() {
  24.         return y;
  25.     }
  26.     public int getA() {
  27.         return a;
  28.     }
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement