SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ is a behavioral design pattern that defines the skeleton of an algorithm in the superclass but lets subclasses override specific steps of the algorithm without changing its structure.
A
Visitor
B
Template Method
C
State
D
Strategy
Explanation: 

Detailed explanation-1: -Template Method is a behavioral design pattern that defines the skeleton of an algorithm in the superclass but lets subclasses override specific steps of the algorithm without changing its structure.

Detailed explanation-2: -Strategy Design Pattern involves the removal of an algorithm from its host class and putting it in a separate class. As you know, there may be multiple strategies which are applicable for a given problem.

Detailed explanation-3: -Chain of Responsibility Pattern It is a behavioral design pattern that allows us to pass a request between a chain of objects. Each object in the chain contains its processing logic that performs some action and decides the next object from the chain to delegate the work.

There is 1 question to complete.