Creating an easy to maintain copy constructor

后端 未结 9 2614
夕颜
夕颜 2021-02-19 13:55

Consider the following class:

class A {

char *p;
int a, b, c, d;

public:
   A(const &A);
};

Note that I have to define a copy constructor

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