> Scope of a component identifier


 Scope of a component identifier

The scope of a component identifier extends over its object type, and over procedure, function, constructor, and destructor blocks that implement methods of the object type and its descendants.

Consequently, the spelling of a component identifier must be unique within an object type and all its descendants and methods.

The scope of a component identifier declared in the private section of an

 object-type declaration is restricted to the module (program or unit) that

contains the object-type declaration.

Private component identifiers act like normal public component identifiers within the module that contains the object-type declaration.

Outside the module, any private component identifiers are unknown and inaccessible.

If you place related object types in the same module, these object types can access each others private components without making the private components known to other's modules.

 К началу страницы 
Тэги: Scope

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //

Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"