...
Computer-Organization
October 6, 2023
Computer-Organization
October 6, 2023
Computer-Organization
October 6, 2023
Computer-Organization
October 6, 2023

Software-Engineering

Question 324
A software design pattern used to enhance the functionality of an object at run-time is:
A
Adapter
B
Decorator
C
Delegation
D
Proxy
Question 324 Explanation: 
→ Software design pattern used to enhance the functionality of an object at run-time is Decorator.
→ Decorator will attach additional responsibilities to an object dynamically keeping the same interface.
→ Decorators provide a flexible alternative to subclassing for extending functionality.
Correct Answer: B
Question 324 Explanation: 
→ Software design pattern used to enhance the functionality of an object at run-time is Decorator.
→ Decorator will attach additional responsibilities to an object dynamically keeping the same interface.
→ Decorators provide a flexible alternative to subclassing for extending functionality.

Leave a Reply

Your email address will not be published. Required fields are marked *