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 do you mean by function and operator overloading in c++?
Discussion on error handling of C++ .
Why do we use constructor?
what Is DCS ? what i will get benefit when i did?
What is a v-table?
What is object file? How can you access object file?
What are the advantages of using friend classes?
What is vector pair in c++?
What are the different types of polymorphism in c++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What does the linker do?
What is decltype c++?
Should you pass exceptions by value or by reference?
Is c++ the hardest programming language?
Explain the concept of copy constructor?