Find the error in the following codeclass a{public:void operator=(class a);void operator,(class a);void operator+(class a);…..}

Showing Answers 1 - 9 of 9 Answers

AZeem

  • Feb 8th, 2007
 

I think this Question is related to Operator Overloading.Acoording to c++ We cannot overload " , " operator . so void operator,(class a); is the error.I'm not sure . if i'm wrong please let me know.

  Was this answer useful?  Yes

ajay1472

  • Nov 22nd, 2007
 

No error because we can overload the comma operator in C++

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions