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
Should the this pointer can be used in the constructor?
What is conditions when using boolean operators?
Describe private, protected and public?
what are the events occur in intr activated on interrupt vector table
Explain the difference between static and dynamic binding of functions?
What are c++ files?
Can you sort a set c++?
What is an incomplete type in c++?
Is set c++?
Write about the access privileges in c++ and also mention about its default access level?
Are c and c++ different?
What is the use of dot in c++?
What is the difference between the compiler and the preprocessor?
If a function doesn’t return a value, how do you declare the function?
Describe exception handling concept with an example?