OpenMusic

Visual Programming | Computer-Assisted Composition

OpenMusic Reference

Prev| | Next


Chapter 9. Classes, Instances, and Factories

Table of Contents

Class Definitions

Slots

Factories and Instances

Inheritance

Variables

Creating a new class

Setting the inheritance

Adding slots to classes

Changing the initialization method for a class

The get-set-slot construction

Class is an important concept in object-oriented programming languages. A class is a a prototype for a certain kind of object. It is a definition of a data structure. It groups together any number of data items in a single object. Classes in OM include whole numbers (integers), decimal numbers (floats), lists, Chords, Voices, and many others.


Prev Home Next
Adding additional methods Up Class Definitions