<< §3.5.(e) Access control | ↑ Table of Contents ↑ | §3.5.(g) Callout override >> |
§3.5.(f) Shorthand definition
Just as in §3.1.(i) a shorthand definition allows to introduce a callout field access method without prior abstract declaration. This requires the callout field binding to specify types as in line 3 of §3.5.(a) above. The generated access method is static iff the bound base field is static.
A shorthand callout to field may optionally declare a visibility modifier, otherwise the generated method inherits the visibility modifier of the bound base field. No further modifiers are set. If a callout to field overrides an inherited method or callout, it must not reduce the visibility of the inherited method/callout.
<< §3.5.(e) Access control | ↑ Table of Contents ↑ | §3.5.(g) Callout override >> |