Difference between Overloading and Overriding?
Answer Posted / mansi shah
Overloading is evaluaated at compile time whereas
Overriding is evaluated at Run Time.
Overloading method has different Parameters but same name
whereas Overriding is just the implementation of method
define din Base Class.
Overloading does not interfere Base Class whereas
Overriding method must require the method which is declared
in Base Class.
Overloading can be defined in one class,in short term it
does not require separate Base Class to implement the
method,whereas for implementing method overriding the Base
class is necessary..
| Is This Answer Correct ? | 21 Yes | 10 No |
Post New Answer View All Answers
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is abstraction in c++ with example?
What is runtime errors c++?
What is helper in c++?
Explain bubble sorting.
What is the auto keyword good for in c++?
Define 'std'.
What does the linker do?
What are static member functions?
What is a .lib file in c++?
How do c++ struct differs from the c++ class?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
What is the best c c++ compiler for windows?
Write a Program for find and replace a character in a string.
Why do we use templates?