Nested Methods

Only if direct access methods are enabled for access to an object’s variable, can a method call be nested. Hence, the following nested statement is legal if aa is a variable defined in anObject:

anObject.aa().sqrt()

See also

Methods

Methods with a Return Value

This

Access Control

Direct Access Methods