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

What jobs can you get with a c++ certification?

598


Is c++ map a hash table?

575


What do you mean by stack unwinding in c++?

742


what does the following statement mean? int (*a)[4]

629


What is boyce codd normal form in c++?

702






What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

579


How should a contructor handle a failure?

698


What is meant by entry controlled loop?

665


What is the identity function in c++? How is it useful?

561


Write a program to add three numbers in C++ utilizing classes.

631


How is objective c different from c++?

807


What is c++ namespace?

720


What is singleton class in c++?

602


What is ios class in c++?

590


What are pointer-to-members in C++? Give their syntax.

625