M
Mohan
Hi,
What are the advantages/disadvantages of using a pointer instead of
Reference in the Copy Constructor ?
For Example,
Writing the Copy constructor for the Class "Temp" as below,
Temp(const base *ptrBase)
{
}
instead of
Temp(const base &objBase)
{
}
Thanks & Regards,
Mohan
What are the advantages/disadvantages of using a pointer instead of
Reference in the Copy Constructor ?
For Example,
Writing the Copy constructor for the Class "Temp" as below,
Temp(const base *ptrBase)
{
}
instead of
Temp(const base &objBase)
{
}
Thanks & Regards,
Mohan