What is "this->front" mean

we haven’t studied this in oops

@pankajsingh
“->” 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;

You will be more familiar with this further when you move to the Linked list section.

sir i understand this ,i am asking the term used in this code everywhere " this" whats the significance of using this term while learning oops we are not using “this” term anywhere in the constructor

and second thing in this line " this->arr=new int [ this->ms] () ; " why we are using parenthesis here we haven’t learned using them when we are studying dynamic memory allocation. will our code work if we don’t use this parenthesis

Refer this

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.