interface A
{
public void print();
}
public class Test
{
public static void main(String[] args) {
fun(new A() {
public void print() {
System.out.println("B");
}
});
}
public static void fun(A a) {
a.print();
}
}
posted on
2010-12-17 10:48山|月
阅读(192)
评论(0)
编辑收藏举报