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

whats 18m + 42n i need answer
1. Leo is a self-employed framer. One month, his framing business had four contracts for $6300.00, $4100.00, $1500.00, and $950.00. The cost of Leo's expenses a
You can see yourself in a mirror because light _____ off the surface of a mirror. Multiple choice question. cross out A) absorbs cross out B) reflects cross out
differentiate between the systole and diastole phase of the human heart
If the same force is applied to an object with a small mass it will have a
Cool Down: Fish Population The number of fish in a lake decreased by 25% between last year and this year. Last year there were 60 fish in the lake. What is the
The open door policy of the early twentieth century called for:.
* What helps prevent bacteria from entering your lungs? * HURRY!
PLS Help!!!..........
please help! will give brainliest to first answer!! thank you!