Gerald C. answered 05/16/19
C++ pro with years of industry experience
You will use these with a class to specify the access of member function and variables to code outside the class. The specifiers are public, protected, and private. Public will all unrestricted access. Private will only allow access within the class (unless friend is used). Protected works like private most of the time to everything outside the class and is accessible within the class. Inheritance has many rules which depend on access specifiers however it's really outside the scope of this question.