1
0
forked from Mirror/wren
Files
wren/doc/site/modules/core/class.markdown
2020-06-05 14:57:20 -07:00

530 B

^title Class Class

TODO

Methods

name

The name of the class.

supertype

The superclass of this class.

class Crustacean {}
class Crab is Crustacean {}

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

A class with no explicit superclass implicitly inherits Object:

System.print(Crustacean.supertype) //> Object

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

System.print(Object.supertype) //> null