Diffrernce Between Overloading and Overriding?

Answers were Sorted based on User's Feedback



Diffrernce Between Overloading and Overriding?..

Answer / anupam mittal

In overloading all the function have same name but
different in no. of argument, type of argument and oreder
of argurmnt while in case of overriding both function are
defined in differenet class when a function inherit from
parent class and there is a function with same prototype in
child class then child class function override the parent
class funciton.

Is This Answer Correct ?    11 Yes 2 No

Diffrernce Between Overloading and Overriding?..

Answer / sourisengupta

OverLoading :- Method Name remains the same with different
signatures.
For ex:- Take a method name vehicle.
if u are passing two parameters to it , it will generate
informations for 2 wheelers .
if u are passing four parameters to it, it will generate
informations for 4 wheelers.

shortly we can tell same with different characteristics.

Overriding : - Method name and signatures must be same.
In overriding user can change the behaviour of the method
for the derived class.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More STL Interview Questions

a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

0 Answers  


what is a template?

2 Answers   Amazon, BITS, IBS, Wipro,


what is c++

2 Answers  


Waht is inheritance

6 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 c++ to define a class box with length,breadth and height as data member and input value(),printvalue() and volume() as member functions.

3 Answers  


How does an stl file work?

0 Answers  


What two types of containers does the stl provide?

0 Answers  


HOW TO GET "H1B" -VISA 4 USA FOR MY SON?HE HAD COMPLETED "MS"(IT)FROM AUSTALIA 2007.I AM WORKING IN U.S.A.

0 Answers  


i want a road rash 3d game code if some one know please help me

1 Answers  


what is the difference between thread and process

1 Answers   Infosys,


What is Object Oriental Progam

2 Answers  


Categories