Question: Answer the questions in c++ 9. Add operator overloads for ++x and x++ to the following class structure: class Test { private: int data; public:
Answer the questions in c++


9. Add operator overloads for ++x and x++ to the following class structure: class Test { private: int data; public: Test(): data(0) {}; Test(int data): data(data) {} int getData() const; vod setData(int data); Test operator=(const Test &right); Test operator+(const Test &right): friend ostream &operator
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
