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 polymorphism explain?

974


Why is oop better than procedural?

808


What is polymorphism and types?

839


What is a superclass in oop?

908


how to get the oracle certification? send me the answer

1905


Which method cannot be overridden?

765


What is coupling in oop?

776


What is data binding in oops?

825


What causes polymorphism?

820


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

925


What is inheritance in simple words?

818


What is class and object in oops?

836


Can an interface inherit a class?

780


What are the three main types of variables?

832


i got a backdoor offer in process global,Bangalore..Can i work with it?

2578