C Programming: What is Functional Overloading

@narthan (325)
India
April 12, 2011 7:24am CST
Hi all! Can anyone please explain me what is functional overloading with examples.I have searching all over to know what exactly is functional overloading.
3 responses
@gigalord (261)
• Romania
12 Apr 11
I will try to explain it as simple as possible, though my C++ skills aren't that perfect. Anyway, you know that in human communication a word often times has multiple meanings. However, in a programming language, a function must wear a name, and can only have one name. This may result to a problem. For example, if you have three types of variables and you want to print these with functions defined by you, you have to declare three different functions: print_int, print_char, print_double. Function overloading was introduced in C++ programming language because of this. The other reason is that constructor must always wear the same name as the object, but you may want different ways in which an object is initialized, so it should be possible to use the same name, but different signature as the constructor is called. Hope this helped you to understand function overloading. You will find great examples by searching for "function overloading" in a search engine.
@narthan (325)
• India
13 Apr 11
Thank you a lot Gigalord! It atleast gave an idea though you response didn't fulfill my actual requirement. Please do update me if you get to know more about the same.
@sajeevking (5073)
• Mumbai, India
15 Apr 11
Well this video i think would help you http://www.youtube.com/watch?v=IAMzWp3kS_k this guy has the best tutorials hope this help you
@stylewaves (1060)
• India
13 Apr 11
Simply the term explains what it is , Overloading a function with some other work is called function overloading . For example , consider yourself as a Function , You can be both Human and a Student .