생성 패턴 퀴즈
13 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

객체 생성과 표현 방법을 분리하는 패턴은 무엇입니까?

  • 팩토리 메소드 (Factory Method)
  • 추상 팩토리 (Abstract Factory)
  • 빌더(Builder) (correct)
  • 프로토타입(Prototype)

객체를 복제하여 생성하는 패턴은 무엇입니까?

  • 빌더(Builder)
  • 팩토리 메소드 (Factory Method)
  • 프로토타입(Prototype) (correct)
  • 추상 팩토리 (Abstract Factory)

객체들의 그룹으로 생성하여 추상적으로 표현하는 패턴은 무엇입니까?

  • 팩토리 메소드 (Factory Method)
  • 추상 팩토리 (Abstract Factory) (correct)
  • 프로토타입(Prototype)
  • 빌더(Builder)

인터페이스를 통해 서로 연관, 의존하는 객체들의 그룹으로 생성하는 패턴은 무엇입니까?

<p>추상 팩토리 (Abstract Factory) (B)</p> Signup and view all the answers

가상 생성자(Virtual Constructor) 패턴이라고도 불리는 것은 무엇입니까?

<p>팩토리 메소드 (Factory Method) (A)</p> Signup and view all the answers

알고리즘을 독립적으로 선택하여 사용할 수 있게 하는 패턴은 무엇인가?

<p>전략 (Strategy) (A)</p> Signup and view all the answers

유사한 서브 클래스를 묶어 공통된 내용을 상위 클래스에서 정의하는 패턴은 무엇인가?

<p>템플릿 메소드 (Template Method) (D)</p> Signup and view all the answers

각 클래스들의 데이터 구조에서 처리 기능을 분리하여 별도의 클래스로 구성하는 패턴은 무엇인가?

<p>방문자 (Visitor) (C)</p> Signup and view all the answers

상위 클래스에서 공통된 기능을 정의하고, 하위 클래스에서 세부 기능을 구현하는 패턴은 무엇인가?

<p>템플릿 메소드 (Template Method) (D)</p> Signup and view all the answers

알고리즘을 캡슐화하여 독립적으로 선택할 수 있게 하는 패턴은 무엇인가?

<p>전략 (Strategy) (D)</p> Signup and view all the answers

클래스들의 데이터 구조에서 처리 기능을 분리하여 별도의 클래스로 구성하는 패턴은 무엇인가?

<p>방문자 (Visitor) (C)</p> Signup and view all the answers

클라이언트에 영향 없이 알고리즘을 변경할 수 있는 패턴은 무엇인가?

<p>전략 (Strategy) (C)</p> Signup and view all the answers

유사한 서브 클래스를 묶어 공통된 내용을 상위 클래스에서 정의하여 코드의 양을 줄이는 패턴은 무엇인가?

<p>템플릿 메소드 (Template Method) (B)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser