private & public |
1. Заголовок или название темы должно быть информативным !
2. Все тексты фрагментов программ должны помещаться в теги [code] ... [/code] или [code=pas] ... [/code].
3. Прежде чем задавать вопрос, см. "FAQ" и используйте ПОИСК !
4. НЕ используйте форум для личного общения!
5. Самое главное - это раздел теоретический, т.е. никаких задач и программ (за исключением небольших фрагментов) - для этого есть отдельный раздел!
private & public |
Muggsy_rule |
Сообщение
#1
|
Группа: Пользователи Сообщений: 3 Репутация: 0 |
объясните как работают эти ключевые слова! ???
|
ozzy |
Сообщение
#2
|
Новичок Группа: Пользователи Сообщений: 42 Репутация: 0 |
public (standard directive)
____________________________ Public and private act as reserved words within object type declarations but are otherwise treated as directives. Component identifiers declared in public component sections have no special restrictions on their scope. private (standard directive) ______________________________ Private and public are reserved words only within objects. The scope of component identifiers declared in private component sections are restricted to the module (program or unit) that contains the object type declaration. - Inside the module, private component identifiers act like normal public component identifiers. - Outside the module, private component identifiers are unknown and inaccessible. Place related object types in the same module (or unit) where they can gain access to each other's private components without making the private components known to other's modules. |
Текстовая версия | 16.06.2024 16:41 |