Lecture overview -- Keyboard shortcut: 'u'  Previous page: Patterns and Techniques [Section] -- Keyboard shortcut: 'p'  Next page: The Decorator Pattern at Run Time -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 38 : 40
Object-oriented Programming in C#
Input and Output Classes
The Decorator Pattern

The Decorator design pattern attaches responsibilities to objects dynamically


A template of the class structure in the Decorator design pattern.

  • Component: Defines the common interface of participants in the Decorator pattern

  • Decorator: References another Component to which it delegates responsibilities