Asked in
Software and Applications (non-game)
Computer Programming
Java Programming
C++ Programming

What is function overloading and operator overloading?

Answer

User Avatar
Wiki User
December 09, 2011 3:14AM

Overloading refers to use of something for different purposes.

Function Overloading - It refers to the design of family of functions with one function name but with different argument list. The correct function will be invoked by checking the number and type of the arguments.

Operator Overloading - The mechanism of giving the additional property to the operator is known as operator overloading. We can overload all the operators except the following:

1.)Class members access operators

2.)Scope resolution operator

3.)Sizeof operator

4.)Conditional operator