mbraychofton mbraychofton
  • 17-03-2017
  • Computers and Technology
contestada

Why would a programmer want to overload operators rather than use regular member functions to perform similar operations?

Respuesta :

taskmasters
taskmasters taskmasters
  • 27-03-2017
The Programmer wants to overload operators rather than use a regular member of the functions to perform similar operations because of two main reasons:
1. For easy and simpler definition of the functions. There would be one pointer who will call the function every time is needed in the program.
2. For easier comparisons of parameters.
Answer Link

Otras preguntas

I need help please!!!?
a driveway is 40 yards long. about how many meters long is it? HINT: ( a yard is 0.914 meter long)
Aaron goes to his favorite hamburger joint with a friend and orders two hamburgers and two French fries. His total cost is $10.50. The next week, he goes with
Find x (Geometry) Full working out pls. Thank you
A tax preparer is part of: A) Business Management B) Administrative Support C) Financial Planning and Management D) Accounting
How did socialism encourage European settlers to treat native Africans differently
For those who took the 8th grade US History CFE Is it easy ? ;)
ça te dit daller à la plage Translate?
How can the Column settings be accessed? A) Layout tab, Page Setup group B) Layout tab, Paragraph group Layout tab, C) Arrange group Design tab, D) Documen
5.14x+1.76+0.9x−x=32