
Flexibility in OOP – Build in hooks for change
One of the essential concepts to understand is flexibility in OOP. A good design requires the ability to extend it. There are ways to do this. However, they require us to incorporate mechanisms for validation and growth. That means we need to find a balance between the core to our functionality and what can be altered as an enhancement. Flexibility in OOP – Many Options There are multiple ways to build flexibility into your object-oriented design. We can use parameters that determine functionality, check for class types, or even plugin commands. These are critical for an effective design as we want to keep our solution flexible enough to grow. Anything rigid is also going to be fragile to some extent. ... Read more