Question: Find the errors in the following class definition and write in a correct format class findErrors { friend int operator* (const int& a, const int&

Find the errors in the following class definition and write in a correct format
class findErrors { friend int operator* (const int& a, const int& b); Public: findErrors (int = 0, int = 0); private: int first; int second; }; double findErrors :: operator* (const findErrors& a, const findErrors& b) { findErrors temp; temp.first = first * b.first; temp.second = second * b.second; return temp; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
