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.

function overloading ,function overloading in c++
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:--

function overloading ,function overloading in c++
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

Popular posts from this blog

Important Announcements(download all my book free)

O LEVEL- INTERNET TECHNOLOGY & WEB DESIGN

Call by Reference with Pointer in C Language part-4-a