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

27 miles per hour. how many miles per minute in decimal form?
When an author introduces the characters and the conflict, this is known as the
Something that contradicts the expectations of the characters in a story is called _____. cultural conflict situational irony verbal irony theme
If a student knowingly borrows an authors words without giving the author credit that student is guilty of?
The slope of a horizontal line is ___?
which statement best describes the agriculture​ of the Maya's?A: each year, they rotated the kinds of crops plantedB: when an area of soul wore our, they cleare
what is even ungulates (hoofed animal), typical herbivores(cows, pigs, and giraffes)
The greeks believed that fire was a state of matter. how did atomists describe fire?
Moses was _______ years old when he went to Midian. This subject is bible
True or false. If two lines are perpendicular, their slopes are negative reciprocals.