https://www.cnblogs.com/xujian2014/p/5846128.html
https://blog.csdn.net/lhy_ycu/article/details/39807741
责任链:
https://blog.csdn.net/MoShimWang/article/details/78888185
命令:
https://blog.csdn.net/sjyttkl/article/details/73536297
https://blog.csdn.net/luckydog1991/article/details/51718663
1、如果成员内部类和外部类有相同名称的变量或者方法名称时,如何解决内部类访问问题。访问内部类的成员用:this.成员,访问外部类用:外部类名.this.成员。
比如:如果调用addAge方法,那么返回值是22
public ArrayList {
private int age = 10;
private class Iterator {
private int age = 6;
public int addAge(){
int j = this.age * 2 + ArrayList.this.age;
return j;
}
}
}
2、