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
What is a c++ map?
What are the advantages of using const reference arguments in a function?
What is a dynamic binding in c++?
What is flush programming?
What are the important differences between c++ and java?
What is input operator in c++?
What are member functions used in c++?
How can I learn c++ easily?
What do you mean by early binding?
Define stacks. Provide an example where they are useful.
what is upcasting in C++?
How can you create a virtual copy constructor?
Explain queue. How it can be implemented?
What is the use of seekg in c++?
What is pointer -to-members in C++? Give their syntax?