0
在下面的代碼中,我該如何到達內部類的「輪子」?內部類的實例化
public class InstantiateClass {
public static void main(String[] args) {
Car c = new Car();
//not sure how to get an instance of 'Wheel' here
}
}
class Car{
public static class Wheel{
}
}
我認爲非私有嵌套類(在這種情況下不是內部類)懷疑。 – 2012-04-25 01:16:29