This

Nasza ocena:

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

Pobierz ten dokument za darmo

Podgląd dokumentu
This - strona 1 This - strona 2

Fragment notatki:

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)

Zaloguj się, aby dodać komentarz