Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.10.24;
Скачать: CL | DM;

Вниз

Скажите пожайлуста, для чего служат   Найти похожие ветки 

 
New   (2004-10-12 15:49) [0]

Скажите пожайлуста, для чего служат такие строки в программе и функции объявленые в ней
private
protected
public


 
begin...end ©   (2004-10-12 15:51) [1]

A private member is invisible outside of the unit or program where its class is declared. In other words, a private method cannot be called from another module, and a private field or property cannot be read or written to from another module. By placing related class declarations in the same module, you can give the classes access to one another"s private members without making those members more widely accessible.

A protected member is visible anywhere in the module where its class is declared and from any descendant class, regardless of the module where the descendant class appears. A protected method can be called, and a protected field or property read or written to, from the definition of any method belonging to a class that descends from the one where the protected member is declared. Members that are intended for use only in the implementation of derived classes are usually protected.

A public member is visible wherever its class can be referenced.


 
New   (2004-10-12 15:53) [2]

А по-русски?



Страницы: 1 вся ветка

Текущий архив: 2004.10.24;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.054 c
1-1097480490
Jann
2004-10-11 11:41
2004.10.24
ComboBox


14-1096969651
karat
2004-10-05 13:47
2004.10.24
Здесь есть кто с Калининграда?


14-1096878392
said
2004-10-04 12:26
2004.10.24
Метод анализа иерархий


9-1088280771
ALexb
2004-06-27 00:12
2004.10.24
delphix


14-1096885198
Kerk
2004-10-04 14:19
2004.10.24
Нужно эту картику на форумах сверху воткнуть... :)