Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


what's the difference between function overloading and
function overiding?

Answers were Sorted based on User's Feedback



what's the difference between function overloading and function overiding?..

Answer / a srinivas rao

function overloading is the process of defining the same
function name with different arguments,number of
arguments ,or ordinal positions of arguments.

function overriding is the process of defining the Base
class function in the derived class with different code
implementation.

Is This Answer Correct ?    63 Yes 5 No

what's the difference between function overloading and function overiding?..

Answer / vinita taneja

1.function overloading is the function having same name but with different signatures whereas , if there is a member function having same name in both base and derived class , then the member function of derived class will be executed and this is called function overriding.

2.there is no concept of inheritance in function overloading whereas it is there in function overriding.

3.in function overloading , signatures must be different whereas in function overriding , signatures must be same.

Is This Answer Correct ?    26 Yes 0 No

what's the difference between function overloading and function overiding?..

Answer / mms zubeir

Function overloading is providing more than one function
with the same name which will operate on different
type/number of input data. Most probably, the kind of
operation will not be changed.

Function overriding is nothing but giving different
operations with the same function name and with same type
of input data (that is, the signature is not being changed)
depending upon the context (the context here means that the
class that holds the function of a hierarchy of classes)

Is This Answer Correct ?    18 Yes 7 No

what's the difference between function overloading and function overiding?..

Answer / mishtu

not necessary to have same return type in function overloading

Is This Answer Correct ?    12 Yes 7 No

what's the difference between function overloading and function overiding?..

Answer / niranjan ambati

The above answers are correct but some more things can be
added to the above stuff..
Function overloading is the function which is defined more
than once with a different argument types and no. of
arguments, but all these functions should have the same
return type.

Function overriding is the function which is defined in
base class and derived classes with the different
implementations.

Is This Answer Correct ?    5 Yes 12 No

Post New Answer



More STL Interview Questions

wap in c++ which accept a integer array and its size as argument and replaces element having even values with its half and element having odd values with twice its value

1 Answers  


What is a list in c++ stl?

0 Answers  


what's the difference between function overloading and function overiding?

5 Answers  


What is stl in c++ with example?

0 Answers  


why does the execution of a c++ program start with main()???

11 Answers  






Which data structure gives efficient search? A. B-tree B. binary tree C. array D. linked list

21 Answers   ABC, Sun Microsystems,


What is the name of your birth place?

0 Answers  


What is a stl vector?

0 Answers  


In what scenario does the Logical file and Physical file being used?

0 Answers   informatics,


what is c++

2 Answers  


What is the disadvantage of templates ?

2 Answers   NSN, Symphony,


Write a program in C++ returning starting locations of a substring using pointers

1 Answers  






Categories