In C++ there are three access specifiers private, public and protected.
Public members can be accessed any where in program, private member can only be access in block where they are declared and protected are same as private except it can also be accessed in child class.