NullObjekt
NullObjekt, often written Null-Objekt in German, refers to the Null Object design pattern in software engineering. The pattern provides an object that conforms to a given interface but implements neutral, no-op behavior. Instead of returning null, a component supplies a harmless object that can be used through the same code paths without null checks.
The core idea is to avoid null reference errors and scattered null tests by substituting a nonfunctional
Origin and usage: The pattern is described in Martin Fowler’s Patterns of Enterprise Application Architecture and
Implementation: Implement a concrete class that implements the interface and whose methods do nothing or return
Benefits and drawbacks: Benefits include fewer null checks, safer default behavior, and simpler APIs. Drawbacks include