Difference between Overloading and Overriding?
Answer Posted / samba
Overloading: We can use same method name and different
arguments, number of arguments and type of arguments, and it
is also called as Compiletime Polymorphism, EarlyBinding and
StaticBinding.
Ex: int add(int a,int b);
int add(int a, float b);
float add(int a, float b, float c);
Overriding: We can use same method name and same arguments
to perfrom our own functionality, and it is also called as
Runtime Polymorphism,LateBinding and Dynamic Binding.
Ex: int add(int,int);
int add(int,int);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Show the declaration for a static member variable.
Which programming language is best?
Explain how the virtual base class is different from the conventional base classes of the opps.
What will happen if a pointer is deleted twice?
What are the differences between malloc() and calloc()?
What are the different types of comments allowed in c++?
Which software is used to run c++ program?
What is object in c++ wikipedia?
What is meaning of in c++?
Does improper inheritance have a potential to wreck a project?
What are the uses of c++ in the real world?
Are strings immutable in c++?
What operators can you overload in c++?
What is virtual destructor ans explain its use?
Does c++ have finally?