Protected: (Access Control)
 
Specifies protected member access control in a Type or Class

Syntax

Type typename
Protected:
member declarations
End Type

Parameters

typename
name of the Type or Class
member declarations
declarations for fields, functions, or enumerations

Description

Protected: indicates that member declarations following it have protected access. Protected members are accessible only from inside a member function for the Type or Class, and classes which are derived from the Type or Class.

member declarations following Protected: are protected until a different access control specifier is given, like Private: or Public:.

Members in a Type declaration are Public: by default if no member access control specifier is given.

NOTE: This keyword is supported in the latest fbc compiler, however, its usefulness is limited since classes and inheritance are Not yet supported.

Example

  '' Example pending classes feature ...


Dialect Differences

  • Available only in the -lang fb dialect.

Differences from QB

  • New to FreeBASIC

See also