A Simple Example of the Null Object Pattern

preview_player
Показать описание
As the title indicates, this is a simple example illustrating how to use the Null Object Pattern correctly, by making the null object classes immutable. The origins of this pattern can be traced to the Null Iterator proposed by the Gang of Four (GoF). This idea evolved over a few years and eventually the Null Object Pattern was first published in the book "Pattern Languages of Program Design 3" by Robert C. Martin, Dirk Riehle, and Frank Buschmann.

(Sorry for how I sounded. Allergies are getting the best of me.)

Рекомендации по теме