정보시스템감리사

정보시스템감리사 기출문제 2024-소프트웨어공학30

thesolutionmaster 2025. 4. 16. 06:21
객체지향 개념 문제

다음 코드의 (가)와 (나)에 나타난 객체지향 개념으로 가장 적절한 것은?

ClosedFigure closedFigure; Rectangle r = new Rectangle(); Circle c = new Circle(); closedFigure = r; closedFigure.getArea(); ………… (가) closedFigure = c; closedFigure.getArea(); ………… (나)
  • ① 상속(inheritance)
  • ② 정보은닉(information hiding)
  • ③ 다형성(polymorphism)
  • ④ 의존성(dependency)