► |  | How to Design Classes Languages

1 | Professor J Beginner
2 | Professor J Intermediate
3 | Professor J Intermediate + Access
4 | Professor J Advanced
| Index

▼ | 1 | Professor J Beginner

1.1 | import
1.2 | class
1.3 | interface
1.4 | Field
1.5 | Method
1.6 | Constructor
1.7 | Statement
1.8 | Expression

Version: 4.1.4
top← prev up next →

#### 1.5`` Method

Type Id (Type Id ,...) {Statement}

Creates a method, bound to Id, that can be called on the current object, or instances of this class. The body of the method, the statement, will be evaluated when the method is called. The method name may not be the name of any classes defined in the same program or of any fields or methods in the same class.

top← prev up next →