I have written a overloaded assignment operator of class perform
copying all the variable values.
For ex :in Exp.cpp
class perform
{
LOG *ptr;
int a;
//constructor
//destructor
perform operator=(const perform & rhs){
ptr = rhs.ptr; a=rhs.s;
return * this;}
};
In another class output
, I have declared a pointer for abc
.
perform * ptr = StatCol::CreateCol(frm);
abc = ptr; //this line should invoke assigment overloaded.
//but in my case it's not invoked.
please please.help