public class InnerClass {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
InnerClass1.InnerClass2 ii=new InnerClass1().new InnerClass2();
ii.discrease(12);
}
}
interface InnerFace
{
void discrease(int c);
}
class InnerClass1
{
private int a=0;
int b=0;
class InnerClass2 implements InnerFace
{
@Override
public void discrease(int c) {
System.out.println(c);
}
}
void add( int c)
{
}
} |