GeekInterview.com
Series: Subject: Topic:
Question: 41 of 267

Classes

How many parameters are there in a binary operator implemented as a friend?
Choose one answer.

a. 2

b. 0

c. 1

d. as many as you need
Asked by: samah74 | Member Since May-2010 | Asked on: Oct 13th, 2010

View all questions by samah74

Showing Answers 1 - 2 of 2 Answers
remon

Answered On : Oct 25th, 2010

View all answers by remon

a. 2

Yes  2 Users have rated as useful.
  
Login to rate this answer.

Since it is a friend, it is not a member. So the syntax has to be operator myOperator(s1, s2). So there are two arguments.

Yes  1 User has rated as useful.
  
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.