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
Which is best ide for c++?
Write bites in Turbo c++ Header ("Include") Files.
How would you differentiate between a pre and post increment operators while overloading?
Define copy constructor.
Do the parentheses after the type name make a difference with new?
What is code reusability in c++?
What is a sequence in c++?
What is the difference between an enumeration and a set of pre-processor # defines?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is data types c++?
What is function prototyping?
What is operator overloading in c++ example?
What's the hardest coding language?
What is array give example?
Do class declarations end with a semicolon? Do class method definitions?