title: Decorator pattern versus sub classing
body: <p>I can solve the problem of adding functionality by adding sub classing then why should I use decorator pattern what's the real advantage of decorator pattern ?</p>