12. Slots

Overview

Types are composed of uniquely named slots. Slots define the state and behavior of the object oriented type. There are two types of slots:

Slot Modifiers

Slots may be annotated with one of the following modifiers:

Protection

A slot can be annotated with one of the following modifiers to define its visibility:

If no protection keyword is specified, the slot defaults to public.