Files
wren/doc/site/core/class.markdown
T
Bob Nystrom 6bda720b71 feat: replace all :::dart code fence markers with :::wren in documentation
Add a custom Pygments lexer plug-in for Wren syntax highlighting, update contributing docs with setup instructions for the lexer, and switch every `:::dart` annotation across all doc/site markdown files to `:::wren` so code examples render with the correct language grammar.
2015-09-22 14:59:54 +00:00

511 B

^title Class Class ^category core

Methods

name

The name of the class.

supertype

The superclass of this class.

:::wren
class Crustacean {}
class Crab is Crustacean {}

System.print(Crab.supertype) // "Crustacean".

A class with no explicit superclass implicitly inherits Object:

:::wren
System.print(Crustacean.supertype) // "Object".

Object forms the root of the class hierarchy and has no supertype:

:::wren
System.print(Object.supertype) // "null".