Question 37Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

A software design pattern used to enhance the functionality of an object at run-time is :

  1. AAdapter
  2. BDecorator
  3. CDelegation
  4. DProxy
Show answerHide answer

Correct answer: (B) Decorator

Explanation

In object-oriented programming, the decorator pattern (also known as wrapper) is a design pattern that allows behaviour to be added to an individual object, statically or dynamically at run-time, without affecting the behaviour of other objects of the same class.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 37 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.