private static c++

  1. In C++, the keyword "private" is used to specify that the members of a class are accessible only within the class.

  2. The keyword "static" in C++ is used to declare a static member. When a member is declared static, it means it is shared by all instances of the class.

  3. When "static" is used with a private member in C++, it means that the member is accessible only within the class and is shared by all instances of the class.