Operators for accessing class members

Nasza ocena:

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

Pobierz ten dokument za darmo

Podgląd dokumentu
Operators for accessing class members - strona 1

Fragment notatki:

Operators for accessing class members  dot ” . ” object.variable; // just like in a C structure object.method(); // encapsulation  scope operator ” :: ” class::variable; // sizeof, static variables class::method(); // defining methods, static methods  Scope definition (object. and class::) usually may be skipped - class method accessing members of its own class - declaring/defining methods inside class declaration ... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz