Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Classes and Subclasses

extends builds the taxonomy. A subclass inherits everything declared for its superclasses, so membership in a subclass implies membership in every superclass.

// Taxonomy: each level inherits from the one above.
Person { hasName: String }.
Man extends Person.
CommunicationDevice extends Component.
DirectAntenna extends CommunicationDevice.