Dashboard > Mantra > ... > Documentation > Classes
  Mantra Log In | Sign Up   View a printable version of the current page.  
  Classes
Added by Terence Parr, last edited by Terence Parr on Nov 03, 2007  (view change)
Labels: 
(None)

Mantra classes look exactly like Java classes including the
inheritance syntax:

class MyClass extends SuperClass {
    fields
    methods
}

or

class MyClass { // extends object
    fields
    methods
}

Only one Mantra class is allowed for file.

You can also include mixins (see the section on mixins below for more
information):

class User implements Comparable {
    ...
}
Fields (Mantra)
Methods (Mantra)
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.1 Build:#806 May 06, 2007) - Bug/feature request - Contact Administrators