Access specifier defines the scope of the class members i.e data members and member functions. The scope here means whether the member function is accessible outside class or not. If it is accessible, up to which we can use the class members i.e inside the class, outside the class, and anywhere in the program.