HI I NEED TO WRITE A C++ CODE[DEFINTION & DECLARATION] FOR THE NECESSARY COPY CONSTRUCTORS & ASSIGNMENT OPERATORS TO ENSURE THAT A DEEP COPY TAKES PLACE.
class CShop
{
public:
CShop();
~CShop();
private:
CEmployeeContainer* m_pEmployees;
char* m_strShopName;
};
class CEmployeeContainer
{
public:
CEmployeeContainer();
~CEmployeeContainer();
private:
CBoss* m_pBoss;
list<string> m_listEmployeeNames;
};
class CBoss
{
public:
CBoss();
~CBoss():
private:
char* m_strName;
int m_nAge;
};
The following code
CShop shop1, shop2;
shp2 =shop1;
must copy everything from shop1 into shop2 without aliasing occuring. i need to use comments where appropriate.
plz help!!!:!: