Difference between Overloading and Overriding?

Answer Posted / shivanand

The main difference between overloading and overriding is
that in overloading we can use same function name with
different parameters for multiple times for different tasks
with on a class.
and overriding means we can use same name fiunction name
with same parameters of the base class in the derived class.
this is also called as reusability of code in the programme.

Is This Answer Correct ?    312 Yes 67 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run c++?

826


Explain the concept of dynamic allocation of memory?

882


What is capacity in vector in c++?

781


What is pointer to member?

801


What is the first name of c++?

809


What is a stack? How it can be implemented?

945


How do I write a c++ program?

837


What are the advantages of inheritance in c++?

893


How do you master coding?

837


What is array in c++ example?

880


How to demonstrate the use of a variable?

885


What is the auto keyword good for in c++?

889


Difference between delete and free.

859


What are the main features of c++?

790


Why do we use templates?

831