[Basic C++] 21 - "this" Keyword in C++
2020. 7. 25.
The "this" keyword is one of the most useful keywords when it comes to object-oriented programming to deal with multiple objects. "this" is just a pointer variable to store the address of the current object. Let's recap how classes and objects work in C++ first shortly. Figure 1 shows class X and its two objects. Class X has two class members variables and a class member function. As these class..