123456789101112131415161718192021222324
class dummyClass { public: void print(); ... private: int listLength; int *list; double salary; }; dummyClass( const dummyClass& other ); dummyClass( const dummyClass& other ) { other.listLength= listLength; other.list= list; other.salary= salary; } }
123
listLenght = other.listLenght; list = other.list; salary = other.salary;