Design Patterns: Decorator

Russell Hammett Jr. (Kritner)
6 min readDec 24, 2020
Photo by Tetiana SHYSHKINA on Unsplash

The decorator pattern is a structural design pattern that can be used to add functionality to classes without modifying the original class or its interface.

From Wikipedia:

In object-oriented programming, the decorator pattern is a design pattern that allows behavior to be added to an individual object, dynamically, without affecting the behavior of other objects from the same class. The

--

--

Russell Hammett Jr. (Kritner)

Just a boring Application Developer/Dad. I enjoy gaming, learning new technologies, reading, and potentially other stuff. That’s about it.