Leaf class (computer programming)

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

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 reserved words (keywords) final in C++, Dart, Java, and PHP, or sealed in C# and Scala. In Java 3D, 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.

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 reserved words (keywords) final in C++, Dart, Java, and PHP, or sealed in C# and Scala. In Java 3D, 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.

References

Text derived from https://en.wikipedia.org/w/index.php?oldid=1322953982 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001322953982 · captured 1763493350.0 · version history

Cite this page as: encyclopegia.org, “Leaf class (computer programming)”, snapshot enwiki-001322953982. https://encyclopegia.org/a/leaf-class-computer-programming

Sources cited in this revision

2 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.