Difference between Overloading and Overriding?

Answer Posted / adeel shahid

overriding is done in the base class where the parent class
method is overridden by a method of the same signature.

Overloading is done in the same class on functions with
input parameters differing in number or type.

Is This Answer Correct ?    98 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pointer with example?

669


Difference between delete and free.

623


Explain the different access specifiers for the class member in c++.

554


Explain the concept of friend function in c++?

612


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

653






What are the basics of local (auto) objects?

640


What is c++ runtime?

661


Where Malloc(), Calloc(), and realloc() does get memory?

617


What are pointer-to-members? Explain.

638


What is the purpose of extern storage specifier?

632


Explain what are the sizes and ranges of the basic c++ data types?

650


Is c++ an oop?

601


Explain class invariant.

595


What is a rooted hierarchy?

689


How did c++ start?

622