Difference between over loading and over ridding?
Answer Posted / manav sharma
Overloading: Same function or operator responds differently
on different types on inputs. This is done by defining a
function (including operator fn() definition) with the same
name but different argument list.
Overriding: Redefining any base class function in a
derieved class to work differently than what is defined in
the base class. So, now the same function called with same
argument list will behave differently when called on the
objects of base and derieved class.
Important: Which instance of function to bind with the
object depends on the type of object on which the function
is called and is decided on compile time. This is also
called early binding or compile time polymorphism.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Is html an oop?
What does and I oop mean in text?
How do you answer polymorphism?
What is multilevel inheritance in oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
How to improve object oriented design skills?
Why we use classes in oop?
What is the example of polymorphism?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is a function in oop?
What is super in oop?
Why do we use inheritance?
What is difference between abstraction and encapsulation?
#include
What does and I oop mean?