Tutorial by Examples

Decorator is one of structural design patterns. It is used to add, remove or change behaviour of object. This document will teach you how to use Decorator DP properly. Let me explain the idea of it to you on a simple example. Imagine you're now in Starbobs, famous coffee company. You can place an o...

Page 1 of 1