Function:
The decorator pattern can be used to make it possible to extend (decorate) the functionality of a class at runtime.
Actors:
FunctionInterface, BasicFunctionClass, decorator, concreteDecorator
Summary
FunctionInterface is to define decoratable method.
BasicFunctionClass defines the basic functionality.
Decorator is the core of this design pattern, is has a FunctionInterface property.
All ConcreteDecorators will overrite the method and patch new functionality to the overriden class.
The decorator pattern can be used to make it possible to extend (decorate) the functionality of a class at runtime.
Actors:
FunctionInterface, BasicFunctionClass, decorator, concreteDecorator
Summary
FunctionInterface is to define decoratable method.
BasicFunctionClass defines the basic functionality.
Decorator is the core of this design pattern, is has a FunctionInterface property.
All ConcreteDecorators will overrite the method and patch new functionality to the overriden class.