Difference between Overloading and Overriding?
Answer Posted / gaurav rawat
* in overloading function name are same but signatures
(argument) are different .
while in overriding function name are as well as argument
are same in drive class as in super class.
* for overloading can be done in one class but
for overriding there is necessary that at least two class
should be present.
| Is This Answer Correct ? | 101 Yes | 24 No |
Post New Answer View All Answers
What do manipulators do?
What is ctime c++?
What are advantages of using friend classes?
What are the advantages of using const reference arguments in a function?
What is jump statement in C++?
What should main() return in c and c++?
What's the order in which the local objects are destructed?
Why #include is used?
Describe Trees using C++ with an example.
Define stacks. Provide an example where they are useful.
What is setf in c++?
Write about all the implicit member functions of a class?
Can I learn c++ without knowing c?
How do you differentiate between overloading the prefix and postfix increments?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;