Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

default access modifier in c++

//default access modifier in c++ struct
In a C++ "struct" type, the default access modifier for members and member functions is "public".

//default access modifier in c++ class
while the default access modifier for "class" members and member functions is "private".
 
PREVIOUS NEXT
Tagged: #default #access #modifier
ADD COMMENT
Topic
Name
5+4 =