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 istream c++?
What is the purpose of extern storage specifier?
Is c++ vector a linked list?
Can comments be longer than one line?
Tell me what are static member functions?
Explain dangling pointer.
Explain explicit container.
What are disadvantages of pointers?
What is function declaration in c++ with example?
What is data type in c++?
Why is the function main() special?
What is the syntax for a for loop?
What does new return if there is insufficient memory to make your new object?
Define a constructor?
What is the latest version on c++?