/* program Test_Inter.java demonstrates usage of interfaces */

interface Drawable {
	static final boolean usePen = true;
	public void setColor(int col);
	public void draw();
}

class Rectangle {
	int	x, y;
	}

class DrawableRectangle extends Rectangle implements Drawable{
	int	col;

	public void setColor(int c) { col = c; }
	public void draw() {
		System.out.println("Draw with a pen is " + usePen);
	}
}

class Test_Inter {
	public static void main(String[] args) {
		DrawableRectangle r = new DrawableRectangle();
		r.draw();
	}
}


