what is meaning of it this->
Why u are writing this->size can we write without it how?
“->” is referred to as an arrow operator and is used to dereferencing a pointer, so the syntax is the same as (*ptr). Dereferencing a pointer means to get the value of that address, so for example:
struct Person{
string name;
int age;
};
Person *Bob = new Person;
Bob -> age = 21;