2019独角兽企业重金招聘Python工程师标准>>>
package com.lh.innerclass;public class Parcel1 {class Contents{private int i = 11;public int value(){return i;}}class Destination{private String label;public Destination(String whereTo) {this.label = whereTo;}public String readLabel(){return this.label;}}public void ship(String dest){Contents c = new Contents();Destination d = new Destination(dest);System.out.println(d.readLabel());}public static void main(String[] args) {Parcel1 p = new Parcel1();p.ship("London");}
}