Skip to content

decorator

walker edited this page Aug 2, 2016 · 1 revision
  1. Open-closed principle: Classes should be open for extension but closed for modification;

  2. Decorator: Attach additional responsibilities to an object dynamically.Decorators provide a flexible alternative to subclassing for extending functionality;

Clone this wiki locally