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
Is C++ case sensitive a) False b) Depends on implementation c) True
what you know about c++?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
Which bitwise operator is used to check whether a particular bit is on or off?
What is the exit function in c++?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What is virtual destructor? What is its use?
How can you link a c program with a c function?
What are virtual constructors/destructors?
How is computer programming useful in real life?
What are arithmetic operators?
When you overload member functions, in what ways must they differ?
What is the difference between strcpy() and strncpy()?
Specify different types of decision control statements?
What is c++ 11 and c++ 14?