C++ General Question

Can someone explain why is the this-> keyword used in c++
Thank You

@toastedpitabread Do you know about it?

It’s actually two things 1. this, and 2. -> (arrow operator).
this deals with object-oriented programming concepts. So it’s good to abstractly understand some OOP before it starts making sense why this is useful.

For some info on this

For some info on arrow operator:

1 Like

Thanks :slight_smile: