what is function over loading?

Answer Posted / prabhakar

defining a function with a same name with differ in number of arguments r return type r tpe of arguments in one class is called funstion overloading.
for example
class base
{
public:
fun(int a,int b);
fun(char a,char b);
}
above two functions are diffrer in type of arguments.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the full form of oops?

853


Why is there no multiple inheritance?

715


What is the advantage of oop over procedural language?

789


Why we use classes in oop?

721


What is the difference between encapsulation and polymorphism?

733






class type to basic type conversion

2023


Where You Can Use Interface in your Project

1563


Why it is called runtime polymorphism?

735


What is destructor oops?

778


Why oops is important?

740


What is the difference between static polymorphism and dynamic polymorphism?

783


What are the benefits of oop?

796


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4424


What is methods in oop?

685


What are oops functions?

725