The Decorator pattern is a design pattern from Object Oriented Programming. It is intended to facilitate an extension of objects. Let's imagine we have a small ordering platform where we sell cars. Where the cars come from doesn't matter. The cars have to be created as objects in our program.
OOP - Decorator-Pattern
· 4 min read