The Decorator pattern, or its cousin, in JavaScript
The Decorator pattern is a way to reduce multiple levels of inheritance that clash with each other; for example, if you want to create objects which address one or more between the X, Y or Z responsibilities, plain inheritance leads you to create the following classes:
Want to have your say? just login


Be first to show your opinion !!!