interface Shape
{ void drow();
}
class Rect implements Shape
{ public void drow() { System.out.println("我是矩形"); }
}
class Circle implements Shape
{ public void drow() { System.out.println("我是圆形"); }
}
public class Interfaceexample { public static void main(String[] args) { Rect re = new Rect(); Circle ci = new Circle(); re.drow(); ci.drow(); }
}