next up previous contents
Next: Features Up: The Cool Reference Manual1 Previous: Getting Started   Contents

Classes

All code in Cool is organized into classes. Multiple classes may be defined in the same file. Class definitions have the form:

class <type> [ inherits <type> ] {
    <feature_list>
};

The notation [ ...] denotes an optional construct. All class names are globally visible. Class names begin with an uppercase letter. Classes may not be redefined.



Subsections