Commit 9146f232 authored by nargessalehi98's avatar nargessalehi98

Delete unnecessary method.

parent a737b010
import java.awt.*; import java.awt.*;
public class Wall extends Rectangle { public class Wall {
private int x, y, width, height; private int x, y, width, height;
private Graphics2D g2d; private Graphics2D g2d;
...@@ -16,24 +16,19 @@ public class Wall extends Rectangle { ...@@ -16,24 +16,19 @@ public class Wall extends Rectangle {
g2d.fillRect(x, y, width, height); g2d.fillRect(x, y, width, height);
} }
public double getX() { public int getX() {
return x; return x;
} }
public double getY() { public int getY() {
return y; return y;
} }
public double getWidth() { public int getWidth() {
return width; return width;
} }
public double getHeight() { public int getHeight() {
return height; return height;
} }
@Override
public String toString() {
return x+" "+y;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment