The access specifiers public: and private: divide a class’s declarations into those any code may use and those only the class’s own member functions may use. A class starts private, a struct public, for its members and for its base classes (Chapter 3); otherwise the two keywords are the same.
Computer Science · शब्दावली