a6
This commit is contained in:
17
assignment6/Question3/IShape.java
Normal file
17
assignment6/Question3/IShape.java
Normal file
@@ -0,0 +1,17 @@
|
||||
import java.awt.Graphics;
|
||||
|
||||
public interface IShape {
|
||||
public int getX();
|
||||
|
||||
public int getY();
|
||||
|
||||
public void setX(int x);
|
||||
|
||||
public void setY(int y);
|
||||
|
||||
public boolean isVisible(int w, int h);
|
||||
|
||||
public boolean isIn(int x, int y);
|
||||
|
||||
public void draw(Graphics g);
|
||||
}
|
||||
Reference in New Issue
Block a user