1. Заголовок или название темы должно быть информативным !
2. Все тексты фрагментов программ должны помещаться в теги [code] ... [/code] или [code=pas] ... [/code].
3. Прежде чем задавать вопрос, см. "FAQ" и используйте ПОИСК !
4. НЕ используйте форум для личного общения!
5. Самое главное - это раздел теоретический, т.е. никаких задач и программ (за исключением небольших фрагментов) - для этого есть отдельный раздел!
| 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. |
Muggsy_rule private & public 20.06.2003 18:59
Muggsy_rule Re: private & public 23.06.2003 16:05
Alex Re: private & public 26.06.2003 17:49![]() ![]() |
|
Текстовая версия | 19.02.2026 18:23 |