Leaf class (computer programming): Difference between revisions

Content deleted Content added
initial
 
See also: Removed my own nonsense; need to be awake :-)
Line 1:
In [[class (computer science)|class-based]] [[object-oriented programming language|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 <code>final</code> keyword in [[Java programming language|java]].
 
== See also ==
 
* [[Immutable object]]: being an instance of a leaf class is one of the commonly accepted criteria for being an immutable object.
 
{{compu-lang-stub}}