Difference between Overloading and Overriding?
Answer Posted / janet
1. In overloading,there is a relation ship between methods
available in the same class where as in overridding,there
is relationship between a super class method and subclass
method.
2. overloading doesn't block inheritence from the
superclass where as overridding blocks inheritence.
3. in overloading,seperate methods share the same name
where as in overridding,subclass methods replaces the
superclass.
4.overloading must have different method signatures where
as overriding must have same signature.
| Is This Answer Correct ? | 482 Yes | 79 No |
Post New Answer View All Answers
What is std :: flush?
What is iterator in c++?
What is a storage class? Mention the storage classes in c++.
the first character in the variable name must be an a) special symbol b) number c) alphabet
Does c++ support exception handling?
What is the purpose of the "delete" operator?
Describe protected access specifiers?
What is the use of structure in c++?
Should you pass exceptions by value or by reference?
Is multimap sorted c++?
Why do we use vector in c++?
What is the use of "new" operator?
What gives the current position of the put pointer?
How would you use the functions sin(), pow(), sqrt()?
What is the extraction operator and what does it do?