shilpashetty27
Technical User
I'm not sure what the 'this' keyword does when used as a parameter in a constructor.
For example, pls consider the foll:
class shape
{
private:
int color;
int dim;
public:
shape();
shape(int i);
~shape();
};
int main()
{
shape(this);
}
I'm not sure what the 'this' keyword does. Could anyone please enlighten me?
I appreciate your help and thanks in advance.
cheers,
Shilpa