What is Overloading at OOP ?

Questions by dipak43

Showing Answers 1 - 7 of 7 Answers

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.

chandu

  • 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.

  Was this answer useful?  Yes

sugumar

  • Jul 10th, 2013
 

the overloading is mainly defined as same function name and different parameter . its called as overloading

  Was this answer useful?  Yes

chitra

  • Oct 2nd, 2013
 

Overloading means assigning different meaning to an operator,depending on the context.c++ permits overloading of operator thus allowing us to assign multiple meaning to an operator.

  Was this answer useful?  Yes

HARSHLATA SONI

  • Feb 19th, 2016
 

Having same method name with different SIGNATURES. Overloading is the concept of Compile time Polymorphism. It does not need inheritance. Method can have different data types. Two function having same name and return type, but with different type and/or number of arguments is called as overloading.

  Was this answer useful?  Yes

PRITHIYA

  • Mar 16th, 2016
 

It refers to defining different forms of a method usually by receiving different parameter number or types. It can be seen as static polymorphism. The decision to call an implementation or another is taken at coding time. Notice in this case the signature of the method must change.

  Was this answer useful?  Yes

kartik

  • Jul 15th, 2016
 

It is compile time polymorphism

  Was this answer useful?  Yes

vijay

  • Jul 29th, 2016
 

The method having same name with different arguments (it differs either in the data type or number of arguments)

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions