Показать сообщение отдельно
Старый 05.08.2002, 19:18
CyberMax вне форума Посмотреть профиль Отправить личное сообщение для CyberMax Найти все сообщения от CyberMax
  № 3  
CyberMax
 
Аватар для CyberMax

Регистрация: Dec 2000
Адрес: Moscow, Russia
Сообщений: 204
Отправить сообщение для CyberMax с помощью ICQ
Не знаю, как в C++ (у Страуструпа упоминания ничего кроме public вообще не нашел), но в Delphi верно следующее:
Цитата:
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. In other words, 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.
Не помню, есть ли в C++ кейворд private.
__________________
Wbr, CyberMax


Последний раз редактировалось CyberMax; 05.08.2002 в 19:22.