public class MOuter{ private String name ="imooc"; public void show(){ class MInner { int score = 86; public int getScore( ){ return score+15; } } MInner mi = new MInner(); mi.getScore(); System.out.println("姓名:" + name + "\n加分后的成绩:" + newScore); } public static void main(String[] args){ MOuter mo = new MOuter(); mo.show(); }}
添加回答
举报
0/150
提交
取消