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

Two glasses together contain 280 mLof water. The first glass contains 80 ml more than the second glass. How much water does the first glass contain?
What is the answer to 5x-7y=14
How does the modern era differ from the post-classical era?
what is the meaning of vague and a sentence on that.
1.What is the probability of choosing a face card from a deck of 52 cards (face cards are jacks, queens, and kings)? What is the probability of the 2nd card bei
State whether the equation is a linear equation in one variable or not. –2x(–2 – x) = x + 1
use the discriminant to determine the number of solutions of the quadratic equation, and whether the solutions are real or complex. Note: It is not necessary to
if a+b+c=0 for a,b,c then prove a²/bc+b²/ca+c²/ab=3.
Is it possible to express every decimal as a fraction (without rounding)? Why or why not?
What makes a pear or fig gritty?