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

how about this ok 5----15 and whats the answer for this one then
Which of the following represents an ion? a particle having: 14 protons, 14 neutrons, and 14 electrons a particle having 9 protons, 9 neutr
is human height inherited or acquired?
How do yuh solve the equation 6(x-2)+2x-4=8(x-2)+8
the largest source of oxygen released into the atmosphere is from the: a. ozone b. fossil fuel c. Sahara desert d. rainforest
The central interest of city-state of Sparta was what?what were they most concerned with?
Human body has 209 bones, 2.9% are in the inner ear hw many bones are in the ear?
4 physical descriptions metal, non-metal, metalloid, color, texture, color, texture, state, density, melting, point, boiling point, physical state
what kind of atom has 79 protons in its nucleus
what is a property that describes how easily a substance undergoes chemical changes?