To tylko jedna z 2 stron tej notatki. Zaloguj się aby zobaczyć ten dokument.
Zobacz
całą notatkę
This exists in every non-static method a pointer to the object, for which the method was called used for returning reference or pointer to the object for which the method was called does not occupy memory does not need to be declared person & person::timeTravel(int years) { age += years; return *this; } person Boss(40, ”John”, ”Smith”); ( Boss.timeTravel(+20) ).timeTravel(-30)
... zobacz całą notatkę
Komentarze użytkowników (0)