This-> operator meaning?

What is the significance of this->class_member ?

This means u r refering to the current object

But without using this-> also we can refer, simply by writing that data member.
this->max_size=6 or max_size=6
both are same only

Yes both are same no need to use this

1 Like