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


Please Help Members By Posting Answers For Below Questions

Which is best ide for c++?

558


Write bites in Turbo c++ Header ("Include") Files.

675


How would you differentiate between a pre and post increment operators while overloading?

639


Define copy constructor.

610


Do the parentheses after the type name make a difference with new?

633






What is code reusability in c++?

652


What is a sequence in c++?

566


What is the difference between an enumeration and a set of pre-processor # defines?

818


How do you declare A pointer to function which receives an int pointer and returns a float pointer

665


What is data types c++?

534


What is function prototyping?

605


What is operator overloading in c++ example?

639


What's the hardest coding language?

561


What is array give example?

580


Do class declarations end with a semicolon? Do class method definitions?

603