← 목록

정보처리기사 실기 2025년 3회

Q.172025년3회10과목 · Java배점 5점
빈칸 키워드를 작성하시오.
class Rectangle {
    int width, height;
    Rectangle(int width, int height) {
        this.width = width;
        this.height = height;
    }
}
class Square extends Rectangle {
    Square(int a) {
        ____(a, a);  // ← 빈칸
    }
    int getSquareArea() {
        return width * height;
    }
}
댓글…

나만의 풀이, 암기법을 나눠 보세요. 정답이 포함될 수 있어요.

해설
왼쪽에서 보기를 고르고 정답 확인을 누르면
여기에 정답과 해설이 표시됩니다.