► |  | How to Design Classes Languages

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

▼ | 3 | Professor J Intermediate + Access

3.1 | import
3.2 | class
3.3 | interface
3.4 | Modifiers
3.5 | Field
3.6 | Method
3.7 | Constructor
3.8 | Statement
3.9 | Expression

Version: 4.1.4
top← prev up next →

#### 3.5`` Field

- Type Id ;

  Creates a field, bound to Id, that can be used within the current class, or on instances of the current class using an expression. This field will have the declared type and will contain a default value of this type if uninitialized.

- Type Id = Expression ;

  Creates a field, bound to Id, that can be used within the current class, or on instances of the current class using an expression. This field will have the declared type and the value of the evaluated Expression.

top← prev up next →