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


Please Help Members By Posting Answers For Below Questions

Write a program to add three numbers in C++ utilizing classes.

612


Differentiate between an array and a list?

695


total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.

2075


what is the difference between overloading & overriding? give example.

554


How do you sort a sort function in c++ to sort in descending order?

544






Can char be a number c++?

580


What is #include iostream?

727


What do you mean by volatile and mutable keywords used in c++?

566


What is the main purpose of c++?

528


Can a new be used in place of old mallocq? If yes, why?

626


What is expression parser in c++

1880


Explain how overloading takes place in c++?

565


What is the importance of mutable keyword?

572


Give an example of run-time polymorphism/virtual functions.

550


What are static variables?

611