Difference between Overloading and Overriding?
Answer Posted / ranjana chakraborty
Overloading Vs. Overriding
Overloading is nothing but static binding.
Overriding is dynamic binding which will be resolved at run-time.
Overloading deals with multiple methods in the same class with the same name but different signatures.
Overriding deals with two methods, one in a parent class and one in a child class, that have the same signature.
Overloading lets you define a similar operation in different ways for different data.
Overriding lets you define a similar operation in different ways for different object types.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What do you mean by overhead in c++?
Write a program to show polymorphism in C++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is the this pointer?
What are the advantages of using pointers in a program?
What is c++ and its uses?
Is map ordered c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What is wrapper class in c++?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
What are the five basic elements of a c++ program?
What are the advantages of inheritance in c++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Explain what is oop?
Name the operators that cannot be overloaded in C++?