15.1 — The hidden “this” pointer and member function chaining

One of the questions about classes that new programmers often ask is, “When a member function is called, how does C++ keep track of which object it was called on?”. First, let’s define a simple class to work with. This class encapsulates an integer value, and provides some access functions … Continue reading 15.1 — The hidden “this” pointer and member function chaining