Leaf class (computer programming): Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Removed parameters. | Use this bot. Report bugs. | #UCB_CommandLine
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.
 
Line 1:
In [[classClass (computer scienceprogramming)|class-based]] [[Object-oriented programming|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 [[reserved word]]s (keywords) <code>final</code> keyword in [[C++ (programming language)|C++]], [[Dart (programming language)|Dart]], [[Java (programming language)|Java]], orand [[PHP]],<ref>{{cite web |title=PHP: Final Keyword - Manual |url=https://www.php.net/manual/en/language.oop5.final.php |website=www.php.net |access-date=17 May 2023}}</ref> or the <code>sealed</code> keyword in [[C Sharp (programming language)|C#]] orand [[Scala (programming language)|Scala]].
 
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 capabilitiesabilities 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>
 
==References==
Line 9:
[[Category:Class (computer programming)]]
 
{{CompuProg-lang-stub}}
 
{{Compu-lang-stub}}