interface Interface {
public static final int NUM=4;
public abstract void show();
}
class Test implements Interface
{
public void show() { }
class InterfaceDome
{
public static void main(String[] args)
{
Test t = new Test();
System.out.println(t.NUM);
System.out.println(Test.NUM);
System.out.println(Interface.NUM);
}
}
}
|
|