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

Why do we use setw in c++?

648


What is binary object model?

604


What is the size of a vector?

582


What is the main purpose of c++?

551


What is private inheritance?

599






How is c++ different from java?

563


What is the extension of c++?

516


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

1012


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

614


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

592


What is linked list in c++?

695


In a function declaration what does extern means?

603


Why is c++ a mid-level programming language?

595


Why do we need runtime polymorphism in c++?

561


Explain the concept of copy constructor?

623