GeekInterview.com
Series: Subject: Topic:
Question: 5 of 460

Operator Overloading

Why should we have to overload ==(equals) and !=(not equals) operators in same program? If any one is not overloaded it gives error. Same with <= and >=?
Asked by: Interview Candidate | Asked on: Nov 10th, 2011
Showing Answers 1 - 2 of 2 Answers
kabilan

Answered On : Jan 3rd, 2012

Same class name and different parameters within one class

Yes  1 User has rated as useful.
  
Login to rate this answer.
Sivavt

Answered On : Mar 26th, 2012

View all answers by Sivavt

Comparison operators must be overloaded in pair

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.