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
Define friend function.
What is singleton pattern in c++?
What are arithmetic operators?
What is the use of turbo c++?
What c++ is used for?
What is else if syntax?
What is the difference between while and do while loop?
Is it possible to have a recursive inline function in c++?
Explain dangling pointer.
What is c++ manipulator?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
How do you clear a map in c++?
Who created c++?
What is the most powerful coding language?
What is the difference between #define debug 0 and #undef debug?