class Outer
{
int outer_i = 50;
private void test()
{
Inner in = new Inner(this);
in.display();
}
/*class Inner
{
void display()
{
System.out.println("outer_i = "
Ryder Inner in = new Inner(this); //this指该方法所在的类Outer
this.outer = outer;//这样写就明白了,Inner.outer=outer,前面的outer是代码中刚刚new的,后面的outer是参数传过来的
0 7