{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

13a-ReturnThis - return this int main(void LotsOfCalls loc...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> using namespace std; class LotsOfCalls { public: LotsOfCalls* First() { cout << "First\n"; return this; } LotsOfCalls* Second() { cout << "Second\n";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return this; } }; int main (void) { LotsOfCalls loc; loc.First()->Second(); return 0; } /* First Second Press any key to continue . . . */...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online