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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!