Class members access rules

Nasza ocena:

3
Wyświetleń: 483
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Class members access rules - strona 1

Fragment notatki:

Class members access rules  private: private members accessible for methods of this class, for methods and functions declared as friends In a class, all members are private by default  public: public members accessible from outside the class In a struct, all members are public by default  protected: protected members access like to private members but a derived class may also access these members ... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz