Function Overloading in C++ Language
Function Overloading in C++ Language
When One Function name is overloaded with different job it's known Function Loading Or we can
say 'Two or more functions having same name but different arguments are known as Function
Overloading'.
For Example :--
write a program to calculate area of circle and area of rectangle through function overloading.
![]() |
example of function overloading |
OUTPUT
Important Concept ( for interview or campus preparation)
One of the many works of the compiler is that looking function at the time of function call and bind with correct definition is known as early binding or you can say which function is going to run is decided at compile time.
How Function Overloading is Resolved ?
There are three rules which compiler follows:--
![]() |
how function overloading is resolved |
If this article is helpful to you then please like share and give your reaction in below check box.... thank you so much..
Comments
Post a Comment