标签:
匿名内部类(Anonymous Inner Class),在创建实例的同时给出类的定义,所有这些在一个表达式中完成。
1
2
3
4
|
Runnable rn = new Runnable() {
public void run() {
}
};
|
1
2
3
4
5
|
class Anomymous implements Runnable {
public void run() {
}
}
Runnable rn = new Anomymous();
|
Runnable networkTask = new Runnable(){}; 是什么意思
标签:
原文地址:http://my.oschina.net/JoeyZ/blog/510763