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

