xHarbour Reference Documentation > Statement Reference |
Declares the PROTECTED attribute for a group of member variables and methods.
PROTECTED:
Protected member variables and methods are accessible in the class(es) declared in the PRG module and all subclasses. Subclasses are all classes that inherit directly or indirectly from the declared class. A protected member is accessible within the context of a METHOD implemented in the declaring PRG module or in the PRG module of a subclass. Protected members are not accessible within the context of FUNCTION and PROCEDURE.
See also: | CLASS, DATA, EXPORTED:, HIDDEN:, METHOD (declaration) |
Category: | Class declaration , Declaration , xHarbour extensions |
Header: | hbclass.ch |
Source: | vm\classes.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com