Testing the Copy Constructor and the Assignment Operator
You have written a test program for your class X, and everythingworked fine. How did you test the copy constructor and the assignmentoperator? class X { public: X (const X&);
You have written a test program for your class X, and everythingworked fine. How did you test the copy constructor and the assignmentoperator? class X { public: X (const X&);
This is a trick you should never, ever apply, unless it is your lastchance to meet the deadline for the presentation which will save yourjob: #define private public #define protected