能否告之并且解释一下运行结果?
public class parcell{
class contents{
private int i=11;
public int value(){return i;}
contents(){
System.out.println(value());
}
}
class destination{
private String label;
destination(String whereTo){
label=whereTo;
System.out.println(label);
}
String readLabel(){ return label;}
}
public void ship(String dest){
contents c=new contents();
destination d=new destination(dest);
System.out.println(d.readLabel());
}
public contents getcontents(){
return new contents();
}
public destination getdestination(String s){
return new destination(s);
}
public static void main(String[] args){
parcell p=new parcell();
p.ship("good morning!");
parcell q=new parcell();
parcell.contents c=q.getcontents();
parcell.destination d=q.getdestination("good afternoon!");
}
}