Exploring OOP Fundamentals: Part 4 Breakdown
Apr 30, 2024 · 2 min read · THIS POINTER Its is a keyword which points to the objects which invokes the member function. It is used for return object. CODE: class A{ int a; public: void setdata(int a){ this->a=a; } void getdata(){ cout<<"the...
Join discussion