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

differentiate between private, public and protected data members of the class using example.

1 Answers  


What is the STL?

2 Answers   Epson, HP,


What does stl mean in slang?

0 Answers  


Give two integer arrays A & B.A has n elements and B has ' n-1 ' elements . A has all the elements that are there in B. But B has one missing element. Write a function that takes arrays , A & B as imnput and finds the missing element in most optised manner .

4 Answers   Zycus Infotech,


Write a program to print the swapping in two no and using three variable.

5 Answers   Broadridge,


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

0 Answers   informatics,


Is stl open source?

0 Answers  


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.

0 Answers   GE, Infosys, Microsoft, NIM,


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

0 Answers  


Diffrernce Between Overloading and Overriding?

2 Answers   Wipro,


What is the Difference between CArray and CList?

1 Answers   ProdEx Technologies, Siemens,


what is the difference between thread and process

1 Answers   Infosys,


Categories