摘要:
一、.this 我们都知道this是指当前类中的对象本身,但是在内部类中需要指明外部类时,this不再起作用,那应该怎么做呢?下面,让我们看看:public class DotThis { void f() { System.out.println("DotThis.f()"); } public class Inner { public DotThis outer() { return DotThis.this; //A plain "this" would be Inner's "this"... 阅读全文
posted @ 2014-03-24 09:07
wiessharling
阅读(277)
评论(0)
推荐(0)

浙公网安备 33010602011771号