You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
public class Jb35_AnsInnerClass
|
|
|
|
|
{
|
|
|
|
|
/*<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD>ڲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳л<EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD>ⲿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߽ӿ<EFBFBD>
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><EFBFBD>࣬<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
public static void main(String[] args)
|
|
|
|
|
{
|
|
|
|
|
new Outer().method();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Outer
|
|
|
|
|
{
|
|
|
|
|
/*
|
|
|
|
|
class Inner extends Demo
|
|
|
|
|
{
|
|
|
|
|
void show()
|
|
|
|
|
{
|
|
|
|
|
System.out.println("<22>Ǻ<EFBFBD>"+num);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
public void method()
|
|
|
|
|
{
|
|
|
|
|
//new Inner().show();
|
|
|
|
|
new Demo()
|
|
|
|
|
{
|
|
|
|
|
void show()
|
|
|
|
|
{
|
|
|
|
|
System.out.println("<22>ǺǺǺ<C7BA>"+num);
|
|
|
|
|
}
|
|
|
|
|
}.show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class Demo
|
|
|
|
|
{
|
|
|
|
|
abstract void show();
|
|
|
|
|
}
|