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
Mention the ways in which parameterized can be invoked. Give an example of each.
What is an adjust field format flag?
Should I learn c or c++ first?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What is a down cast?
What is data types c++?
What is the most powerful coding language?
What is the difference between the functions rand(), random(), srand() and randomize()?
What are the differences between new and malloc?
Differentiate between a copy constructor and an overloaded assignment operator.
Differentiate between late binding and early binding.
What does flush do c++?
What is c++ runtime?
Can non graphic characters be used and processed in C++?
How to declare a pointer to an array of integers?