在下面的代码中,我怎样才能到达内部类“轮子”?
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{
}
}
在下面的代码中,我怎样才能到达内部类“轮子”?
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{
}
}