interface Shape
{
public void draw();
public void delete();
}
class Circle implements Shape
{
public void draw()
{
System.out.println("circle is drawing");
}
publc void delete()
{
System.out.println("cicle is deleting");
}
}
public class Demo
{
public static void main(String [] args)
{
Shape ss = new Circle();
ss.draw();
}
}
|
|