Difference between Overloading and Overriding?
Answer Posted / pratimakiran
Overloading doesn't block Inheritence from the
superclass where as Overriding blocks is Inheritence.
Overloading method has different Parameters but same name
whereas Overriding is just the implementation of method
define Base Class.
Overloading Two or more functions having same name but
different methods i.e arguements or return types.
Overriding means use same name function name
with same parameters of the base class in the derived class.
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is the exit function in c++?
Can notepad ++ run c++?
What is :: operator in c++?
What is meant by forward referencing and when should it be used?
Why is it called c++?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
What is insertion sorting?
What is a Default constructor?
Keyword mean in declaration?
Where are setjmp and longjmp used in c++?
What is the use of c++ programming language in real life?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
Can c++ be faster than c?
How do you clear a set in c++?
What is a .lib file in c++?