/**
* Created by xabcd on 2019/2/16.
*/
public class java_outer
{
int score = 95;
void inst()
{
Inner in = new Inner();
in.display();
}
class Inner
{
void display()
{
System.out.println("成绩:score="+score);
}
}
}
/**
* Created by xabcd on 2019/2/16.
*/
public class test_outer
{
public static void main(String[] args)
{
java_outer ou = new java_outer();
ou.inst();
}
}
成绩:score=95
