Diffrernce Between Overloading and Overriding?
Answers were Sorted based on User's Feedback
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 |
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 |
What are the various types of stl containers?
How the STL's are implemented, What the difference between templates and STL?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
what is the difference between thread and process
what is an algorithm in terms of STL?
what is strcture i++ i ++i answer to this i=5 what is the out put
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1
Is stl part of c++ standard?
How stl is different from the c++ standard library?
How is stl different from c++ standard library?
what is electronic software