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
Name the implicit member functions of a class.
Explain how we implement exception handling in c++?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
How is modularity introduced in C++?
How many standards of c++ are there?
What is c++ virtual inheritance?
Explain linked list using c++ with an example?
Explain how functions are classified in C++ ?
Explain the uses oof nested class?
What is the use of 'using' declaration in c++?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Mention the purpose of istream class?
What does override mean in c++?
What is an incomplete type in c++?
What are the types of container classes?