Methods

Skip to end of metadata
Go to start of metadata

Only methods that have an explicit return type can return a value. If
you do not have a return statement, Mantra adds return null; for you
at the end.

Methods can have zero or more arguments.

Methods may be overloaded based on number of arguments (but currently
not according to type like you can in Java):

Like Java, toString, equals are "special" methods.

You can define class methods using static:

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.