Confusion with copy constructor and private member

前端 未结 3 402
猫巷女王i
猫巷女王i 2021-01-25 15:51

Suppose I have the following class:

class Test
{
             int num;
     public:
             Test(int x):num(x){}
             Test(const Test &rhs):num(         


        
3条回答
提交回复
热议问题