Leaf class (computer programming)
Appearance
In class-based object-oriented programming languages, a leaf class is a class that should not be subclassed. This can be enforced either by convention, or by using a language feature such as the final
keyword in java.
See also
- Immutable object: being an instance of a leaf class is one of the commonly accepted criteria for being an immutable object.