Rectangle::Rectangle(Rectangle &r)
{
this.length=r.length;
this.breadth=r.breadth;
}
I used this. instead of this-> and it gives error
[Error] request for member 'breadth' in '(Rectangle*)this', which is of pointer type 'Rectangle*' (maybe you meant to use '->' ?)
So does this mean class are sort of like Pointers? or I might be lacking some concepts so please help me to understand.