Technical Discussion :: C++
Home > Freshers > Technical Interview Questions > C++
6. Function overloading VS Operator Overloading
OR
What is the difference between function overloading and operator overloading? And what are the advantage of it.
Answer:
function overloading: instead of writing the different functions to perform same actions we write same function name with different number of parameters of different types of parameters it is called function overloading.
advantages of function overloading- improve code
Asked In :: Sapient
function overloading: instead of writing the different functions to perform same actions we write same function name with different number of parameters of different types of parameters it is called function overloading.
advantages of function overloading- improve code