You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decorator pattern allows a user to add new functionality to an existing
object without altering its structure. This type of design pattern comes
under structural pattern as this pattern acts as a wrapper to existing class.
Key Idea.
This pattern creates a decorator class which wraps the original class and
provides additional functionality keeping class methods signature intact.