A software design pattern used to enhance the functionality of an object at run-time is:
optin 2
Decorator-- In object-oriented programming, the decorator pattern (also known as Wrapper, an alternative naming shared with the Adapter pattern) is a design pattern that allows behavior to be added to an individual object, either statically or dynamically, without affecting the behavior of other objects from the same class.
Decorator is used to enhance the functionality of an object at run-time, i.e. it allows you to add new behavior to other objects at run-time.
So, option (2) is correct.
64.3k questions
77.9k answers
244k comments
80.0k users