Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ToyData {
- private int x;
- private int y;
- private int width;
- private int height;
- public ToyData(int x, int y, int width, int height){
- this.x = x;
- this.y = y;
- this.width = width;
- this.height = height;
- }
- 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 getWidth() {
- return width;
- }
- public void setWidth(int width) {
- this.width = width;
- }
- public int getHeight() {
- return height;
- }
- public void setHeight(int height) {
- this.height = height;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement