Groovy generates getters and setters for the public fields of a class.
These default methods can be overridden as usual.
If a field is final, then Groovy generates only the getter method.
Groovy provides a special operator, called the field operator .@, that bypasses the generated accessor methods.
No comments:
Post a Comment