Find the error(s) in the following code: (6)
class opOverload //Line 1
//Line 2
public: //Line 3
opOverload operator*(); //Line 4
//Overload the binary
//operator *
opOverload(double = 0); //Line 5
private: //Line 6
double decNum; //Line 7
; //Line 8
Find the error(s) in the following code: (6)
class myClass //Line 1
//Line 2
public: //Line 3
myClass operator+(const int& obj); //Line 4
//Returns the object containing the
//sum of the corresponding members
//of this object and
obj.myClass(int = 0, int = 0); //Line 5
private: //Line 6
int a; //Line 7
int b; //Line 8
; //Line 9