Difference between Operator overloading and Functional
overloading?

Answer Posted / rock

we use predefined operators like +,-,* etc.. to perform
operations only between normal variables even in order to
perform between user defined variables we use operator
overloading.

when two or more functions having same name but different
signatures we use function overloading.
Here compiler uses NAME MANGLING to differentiate between the
functions.

Is This Answer Correct ?    17 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

2097


What is std namespace in c++?

726


How do you define/declare constants in c++?

614


Discussion on error handling of C++ .

650


When there is a global variable and local variable with the same name, how will you access the global variable?

625






What is the best way to declare and define global variables?

706


What is class syntax c++?

595


What is the difference between method overloading and method overriding in c++?

566


How do you declare A pointer to function which receives an int pointer and returns a float pointer

684


What is the full name of logo?

596


What is anonymous object in c++?

632


What are virtual constructors/destructors?

578


What are the methods of exporting a function from a dll?

652


What is the use of typedef?

640


What problems might the following macro bring to the application?

626