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

define the word sans-culottes(related to french revolution)
if athlete is to team , what is to crew A-owner B- boat C- stadium D-co-poilt
(x^5 - 8x^3 + 24x^2 + 12x + 40) / (x + 4) how do you do this using synthetic division
Is cast iron bad for you?
What is the number that is one-tenth of one-fourth of one-fifth of one-half of 12,000?
The basic wage earned by a truck driver for a 40-hour week is $560.00. Calculate his hourly rate
Discuss reasons why e-mail is so important to the business world today?
The competitive exclusion principle states that _______. a. more than two organisms are capable of filling the same niche b. competition between species never l
Sales tax in the state of Florida is 7%. Bob purchased a coat that was marked $350.00. What is the total bill including tax?
The Top status bar command is used to display the highest value in the selected range in the AutoCalculate area. (True/False)