#polymorphism

[ follow ]
Java
fromHackernoon
2 years ago

Refactoring 029 - How to Replace NULL With Collection | HackerNoon

Replace nullable optional attributes with empty collections to eliminate null checks and leverage polymorphism.
[ Load more ]