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#.
This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Leaf class" computer programming – news · newspapers · books · scholar · JSTOR (December 2009) (Learn how and when to remove this message) |
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#.
![]() | This programming-language-related article is a stub. You can help Wikipedia by expanding it. |