Hi Swarup,
That is true for this example. Please remember this is a toy example to illustrate the concepts which I was trying to explain. The idea of these approaches is the ability we have to influence behavior from outside using decorators instead of having centralized control. Even the last example that I have provided works like a plug-in setup which allows for extension from outside. Hope that clarifies
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Kind of, does the job ?
Hi Swarup,
That is true for this example. Please remember this is a toy example to illustrate the concepts which I was trying to explain. The idea of these approaches is the ability we have to influence behavior from outside using decorators instead of having centralized control. Even the last example that I have provided works like a plug-in setup which allows for extension from outside. Hope that clarifies