Something out of Nothing: Null Object Pattern
We often think of nothing as, well, nothing. It's when something doesn't exist and therefore cannot be interacted with. So in our code, we try account for having nothing. No User? No problem. The Null Object Pattern is also an example of Composition over Inheritance.
0 Comments
Recommended Comments
There are no comments to display.