GeekInterview.com
Series: Subject: Topic:
Question: 3 of 85

what is Overloading at OOP ?

Asked by: dipak43 | Member Since May-2012 | Asked on: May 21st, 2012

View all questions by dipak43

Showing Answers 1 - 2 of 2 Answers
Sandhya.Kishan

Answered On : May 21st, 2012

View all answers by Sandhya.Kishan

Overloading is ability of one function to perform different tasks, i.e,it allows creating several methods with the same name which differ from each other in the type of the input and the output of the function.
Overloading can be used with functions and members.

Example

int volume(int s),
double volume(double r,int h),
long volume(long l,int b,int h)

Depending on the parameter passed the corresponding function will be called.

  
Login to rate this answer.
chandu

Answered On : Apr 5th, 2013

overloading is when you define two or more functions with same name and different signatures i.e number of parameters or type of parameters. overloading is resolved at compile time. it is a static or compile time binding.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.