Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

default access specifier in c++

By default access to members of a C++ class is private. 

The private members are not accessible outside the class; 
they can be accessed only through methods of the class. 

The public members form an interface to the class and 
are accessible outside the class.
 
PREVIOUS NEXT
Tagged: #default #access #specifier
ADD COMMENT
Topic
Name
9+9 =