Advertisement
Guest User

ToyData

a guest
Dec 8th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1.  
  2. public class ToyData {
  3.     private int x;
  4.     private int y;
  5.     private int width;
  6.     private int height;    
  7.    
  8.      public ToyData(int x, int y, int width, int height){
  9.          this.x = x;
  10.          this.y = y;
  11.          this.width = width;
  12.          this.height = height;       
  13.  
  14.      }
  15.  
  16.     public int getX() {
  17.         return x;
  18.     }
  19.  
  20.     public void setX(int x) {
  21.         this.x = x;
  22.     }
  23.  
  24.     public int getY() {
  25.         return y;
  26.     }
  27.  
  28.     public void setY(int y) {
  29.         this.y = y;
  30.     }
  31.  
  32.     public int getWidth() {
  33.         return width;
  34.     }
  35.  
  36.     public void setWidth(int width) {
  37.         this.width = width;
  38.     }
  39.  
  40.     public int getHeight() {
  41.         return height;
  42.     }
  43.  
  44.     public void setHeight(int height) {
  45.         this.height = height;
  46.     }
  47.      
  48.      
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement