All the class members declared under public will be available to everyone. The class members declared as private can be accessed only by the functions inside the class . The data members and member functions declared public can be accessed by other classes too.