Contents | Prev | Next | Index
The scope of a member identifier declared in a class type extends from the point of declaration to the end of the class type definition. It also extends over all descendants of the class type and the blocks of all method declarations of the class type. Also, the scope of member identifiers includes the field and method designators, and the with statements that operate on variables of the given class type.
A member identifier, also known a component identifier, which is declared in a class type can be redeclared in the block of a method declaration of the class type. In that case, the Self parameter can be used to access the component whose identifier was redeclared.
It is also possible to redeclare a member identifier of a class type in a descendant. Such redeclaration hides the inherited member. However, the INHERITED keyword can be used to bring the inherited component back into scope.
Contents | Prev | Next | Index
Canterbury Pascal for JVM (Last documentation update
Sep 02, 2004)
Copyright © 1999-2004 J.Neuhoff - mhccorp.com
. All rights reserved.
Please send any comments or corrections to
neuhoff@mhccorp.com