default access specifier in c 2b 2b

Solutions on MaxInterview for default access specifier in c 2b 2b by the best coders in the world

showing results for - "default access specifier in c 2b 2b"
Rohan
27 Jan 2020
1By default access to members of a C++ class is private. 
2
3The private members are not accessible outside the class; 
4they can be accessed only through methods of the class. 
5
6The public members form an interface to the class and 
7are accessible outside the class.