정보처리기사 실기 · 2025년 3회 · 17번

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;
    }
}

이 문제는 풀이 화면에서 직접 실행해 풀 수 있어요.

이 회차 문제 풀어보기 →정보처리기사 실기 더 풀기