SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Represents an operation to be performed on the elements of an object structure. This Pattern lets you define a new operation without changing the classes of the elements on which it operates.
A
Bridge
B
Mediator
C
Observer
D
Visitor
Explanation: 

Detailed explanation-1: -The Visitor pattern provides a maintainable, easy way to represent an operation to be performed on the elements of an object structure. The Visitor pattern lets you define a new operation without changing the classes of the elements on which it operates.

Detailed explanation-2: -UML Diagram First of all, the client uses a Visitor implementation and applies it to the object structure. The composite object iterates over its components and applies the visitor to each of them.

Detailed explanation-3: -In software design and engineering, the observer pattern is a software design pattern in which an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods.

There is 1 question to complete.