Extending Object Behavior with the Decorator Pattern

Photo by Leone Venter on Unsplash

In a previous article, we discussed how to use the strategy pattern to dynamically change an object’s behavior at runtime. Classically, polymorphism in object-oriented design is static and achieved through inheritance; however, with the strategy pattern you can accomplish the same goal dynamically. Indeed, this is an…




Writer | Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why Poriot has the ability to support massive DApps

Mockk: Better to way to mock in Kotlin than Mockito

How to Reset Wiko Rainbow Jam 4G

Reset Wiko Rainbow Jam

Deploying PeopleSoft on OCI

Train Yourself For Modern Business Applications Development

Typora: a markdown writer’s soul mate

Python Database Access

Connecting HoloLens: Part 3 of 3

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Severin Perez

Severin Perez

Writer | Developer

More from Medium


My Experience With Debugging

The Node.js Event Loop

What is NodeJS?