Jump to content

Leaf class (computer programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BD2412 (talk | contribs) at 11:43, 11 October 2012 (BD2412 moved page Leaf class to Leaf class (programming language): move to disambiguate, clearly not primary). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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 or the sealed keyword in C#.