§3.5.(a) Syntax
Using one of the callout modifiers get
or set
a role method
can be bound to a field of the role's base class:
1 |
getValue -> get value; |
2 |
setValue -> set value; |
3 |
int getValue() -> get int value; |
where getValue
, setValue
are abstract role methods of
appropriate signatures and value
is a field of the bound base class.
A longer syntax is available, too (see line 3 above), which uses complete signatures.
For the left hand side §3.1.(c) applies, for the
right hand side, this longer version prepends the field type to the field name.