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
Explain how to initialize a const data member.
Explain static and dynamic memory allocation with an example each.
What is isdigit c++?
What does flush do?
Can c++ be faster than c?
Which is better c++ or java?
How does code-bloating occur in c++?
What is difference between n and endl in c++?
what is C++ objects?
What are the two shift operators and what are their functions?
What is meaning of in c++?
Give an example of run-time polymorphism/virtual functions.
What are the advantages of c++? Explain
Which field is used in c++?
When does a 'this' pointer get created?