Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is function overloading..?

Answer Posted / pankaj kumar sharma

Function overloading takes place when a function is
overloaded with two or more tasks ie. same function is
having different behaviour.
It takes place when two functions have same name but
differs in argument list ie. may be the no of arg in both
fun are different or type of the arguments in argument list
are diff.

As return type of a func. does not take part in name
mangling so return type for overloaded functions may differ
or not.

eg: int fun(int arg1, int arg2)
char* fun(char* ptr1)

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation example?

989


What are the advantages of polymorphism?

986


Why is abstraction used?

1042


Is oop better than procedural?

987


Why do we use class in oops?

921


What are the benefits of oop?

1176


How do you use inheritance in unity?

1028


Why is static class not inherited?

1056


What is the diamond problem in inheritance?

1079


What are the benefits of polymorphism?

1177


What is inheritance write a program to show use of inheritance?

1093


What is a function in oop?

1025


Why do we use encapsulation in oops?

977


What is polymorphism and why is it important?

989


What is the difference between static polymorphism and dynamic polymorphism?

1037