Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Objects/Accessibility

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

In the class definition, you can precede a group of members by private: to disallow usage of that member from anywhere outside of that class' own member functions. Or, use protected: accessibility to also allow access to member functions of derived classes. The public: accessibility allows access from anywhere. Additional information about accessibility (includes interactive examples)