Class

class [(baseclass1, baseclass2 ...)]{

    comment = ''comment text''; 

    [modifiers = (modifier1, ...);]

    fields {

        [+#-]field: type;

        ...

    }

    operations {

        [+#-]operation(arg: type, ...): returntype;

        ...

    }

}

Declares a class entity. It is important that the return type is set to ``void'' for no return type.

fields{} holds the list of member fields/attributes for the class and operations{} holds the list of operations/methods for the class.

Both fields and operation names should be preceded by an access modifier. + = public, - = private, # = protected/friend



Subsections

http://www.rawsontetley.org