Class Members


Syntax

member_list:
       member_declaration member_list
       access_specifier: member_list
 
member_declaration:
       declaration_specifiers member_declarator_list ;
       function_definition ;
       qualified_name ;
 
member_declarator_list:
       member_declarator
       member_declarator_list, member_declarator
 
member_declarator:
       declarator: pure_specifier
       identifier : constant_expression

pure_specifier:
       = 0
 
access_specifier:
       public
       protected
       private

Notes

A member list may declare any of the following:

The following considerations apply to member declarations.