次のコードで、内部クラスの「ホイール」に到達するにはどうすればよいですか?
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{
}
}