The binary

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

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X