class Outer
{
private int num = 10;
class Inner
{
public void show()
{
System.out.println(num);
}
}
public void method2()
{
public int num2 = 20;
class Inner
{
public void show()
{
System.out.println(num);
}
}
}
public void method()
{
Inner i = new Inner();
i.show();
}
public int getNum()
{
return num;
}
}
class InnerClassDemo1
{
public static void main(String[] args){
A a = new A();
System.out.println
|
|