Tag: decorator
-
How to implement decorator pattern in Java?
Let’s say you are designing a house, an apartment house. You have done the base design. And now you want to add some more to your design. Let’s do that using Decorator pattern. A decorator pattern lets you add responsibilities to an existing object without changing its existing functionality. An alternate way of achieving this…