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