Code like an Onion: The Decorator Pattern
When cutting an onion, the knife slices through layer after layer, and finally reaches its core. The Decorator Pattern provides us a way of writing code just like cutting through an onion, not in the way of tearing

When cutting an onion, the knife slices through layer after layer, and finally reaches its core. The Decorator Pattern provides us a way of writing code just like cutting through an onion, not in the way of tearing