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

Where is pseudocode used?

0 Answers  


When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??

13 Answers   HCL, Honeywell,


the difference between new and malloc

5 Answers   Siemens,


how many types of notations are in java

1 Answers   National University of Modern Languages (NUML),


Program to read a comment string

1 Answers   IBM,






Can private class be inherited?

0 Answers  


define a string class. overload the operator == to compare two strings

2 Answers   Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,


write a program to find 2^n+1 ?

0 Answers   CTS,


What is abstraction example?

0 Answers  


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

0 Answers   HCL,


What is friend function?

12 Answers   Wipro,


Describe what an Interface is and how it?s different from a Class.

7 Answers   Spinsys,


Categories