Can a class member be private?

Only the class and friend functions can access private members. By default all the members of a class would be private, for example in the following class width is a private member, which means until you label a member, it will be assumed a private member −.
For More Information Please Refer:
https://www.tutorialspoint.com/cplusplus/cpp_class_access_modifiers.htm
You May Also Like to Read: