Network disconnection
Description
※ 본 문제는 두 코드 파일, Car.java와 CarExam.java로 구성되어있습니다. 파일 이름을 클릭하면 파일 내용물을 볼 수 있습니다.
CarExam.java의 c1 변수가 Car class
의 객체를 저장하게 빈칸을 채워보세요. Car class는 Car.java 파일에 정의해두었습니다.
힌트1
객체를 만드는 방법
객체를 생성할 때에는 new
를 사용해야 합니다. 다음은 String 클래스의 객체를 만드는 코드입니다.
String str1 = new String("hello");
-
빈칸에
new Car();
라고 적고, 코드를 제출해보세요. ↩
Fill type challenge HOWTO
- In the Fill type challenge, you have to fill the blank with appropriate code
- The given code except the blank cannot be edited.
- An error message will be shown in the Result area when you leave the blank empty.
1
2
3
4
5
6
public class CarExam{
public static void main(String[]args){
// c1에 Car 객체를 생성해서 넣어주세요.
Car c1 =
}
}
1
2
3
public class Car{
}
Result
Stop
Result of [Run] or [Submit] will be displayed here