A Design Pattern Approach to Improve the Structure and Implementation of the Decorator Design Pattern

Bilal Hussein, Aref Mehanna · Research Journal of Applied Sciences Engineering and Technology · 2016

Reusability is a technique used to unify the abstract representation of real world entities. In object-oriented design and programming, inheritance mechanism plays an important role in software reusability. The Decorator Design Pattern (DDP), invented by GoF, was an alternative solution to the inheritance mechanism. It uses the concept of decorating objects instead of inheritance. The aim of this study is to present the DDP, showing its advantages and disadvantages and offer a new innovative approach, called Decorator Pattern Approach (DPA), in order to improve the structure and implementation of DDP. The main objective of DPA is to provide a way to separate, dynamically, the decorating objects from the objects to decorate.

Read the paper · More papers on PaperTik