what is overloading

Answers were Sorted based on User's Feedback



what is overloading..

Answer / rajveer

c++ provide 2types of overloading.
1. Function overloading:- When we create more then 1
function as same name(like Sum)then it's overloading.
this types overloading in perameters are deffrent becouse
compiler is not know which function called. so sum(),sum
(int,int),sum(int float)etc.
2. operatore overloading:- in c++ operatore(+,-,/ etc.)
worked only builtin datatype. but we can use operatore in
user defined data type by operatore overloading.

Is This Answer Correct ?    12 Yes 0 No

what is overloading..

Answer / laxmi reddy

Function overloading:- When we create more then 1
function as same name(like Sum)then it's overloading.
this types overloading in perameters are deffrent becouse
compiler is not know which function called. so sum(),sum
(int,int),sum(int float)etc.

Is This Answer Correct ?    4 Yes 0 No

what is overloading..

Answer / gaurav pathak

the function overloading is ablity to make more then one
function of same name.compiler identifies which function is
called by making the comparision of function arguments.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More OOPS Interview Questions

Can we create object of class with private constructor?

5 Answers  


What is object in oop with example?

0 Answers  


what is a ststic variable and stiticfunction briefly explain with exmple and in which case we use

2 Answers   HCL,


When is a memory allocated to a class?

11 Answers  


What is super in oop?

0 Answers  






What is the diamond problem in inheritance?

0 Answers  


What are the benefits of interface?

0 Answers  


Why do we use polymorphism?

0 Answers  


Are polymorphisms mutations?

0 Answers  


How is exception handling carried out in c++?

3 Answers  


what is oops

4 Answers   NIIT,


c++ program to swap the objects of two different classes

0 Answers  


Categories