TIJ2里关于inner class的例子"c08:Parcel2.java"是否错误?
c08:Parcel2.java最后两行写到:
.......
Parcel2.Contents c = q.cont();
Parcel2.Destination d = q.to("Borneo");
}
} ///:~
书紧接着解释道:
"If you want to make an object of the inner class anywhere except from within a non-static method of
the outer class, you must specify the type of that object as OuterClassName.InnerClassName, as seen in
main( )."
但是我把两个"Parcel2."都去掉,程序一点问题都没有呀
怎么回事?请帮忙!