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

What is a dynamic binding in c++?

528


Can we define function inside main in c++?

550


Difference between delete and free.

610


Can we use clrscr in c++?

528


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2245






Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

605


How do you establish an is-a relationship?

616


What is c++ hash?

612


What are the two main components of c++?

587


By using c++ with an example describe linked list?

598


Is it possible to use a new for the reallocation of pointers ?

593


What is capacity in vector in c++?

542


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

628


Write some differences between an external iterator and an internal iterator?

578


What is private inheritance?

592