Content deleted Content added
m BD2412 moved page Leaf class to Leaf class (programming language): move to disambiguate, clearly not primary |
Jerryobject (talk | contribs) WP:LINKs: update-standardizes, adds, needless WP:PIPE > WP:NOPIPE. Small WP:COPYEDITs WP:EoS: WP:TERSE, clarify, grammar. Template:Compu-lang-stub update > Template:Prog-lang-stub. |
||
(13 intermediate revisions by 10 users not shown) | |||
Line 1:
In [[
In Java, the Leaf node is an abstract class for all scene graph nodes that have no children. Leaf nodes specify lights, geometry, and sounds. They specify special linking and instancing abilities for sharing scene graphs and provide a view platform for positioning and orienting a view in the virtual world.<ref>{{cite web |date=2 April 2001|url=https://docs.oracle.com/cd/E17802_01/j2se/javase/technologies/desktop/java3d/forDevelopers/J3D_1_3_API/j3dapi/javax/media/j3d/Leaf.html |title=Class Leaf |website= Docs.Oracle |access-date=23 May 2022}}</ref>
▲In [[class (computer science)|class-based]] [[object-oriented programming language]]s, 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]] or the <code>sealed</code> keyword in [[C Sharp (programming language)|C#]].
==References==
{{DEFAULTSORT:Leaf Class}}▼
{{Reflist}}
[[Category:Object-oriented programming]]▼
▲{{DEFAULTSORT:Leaf Class}}
{{Compu-lang-stub}}▼
|