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

Give example of a pure virtual function in c++?

583


What is static in c++?

591


Why was c++ created?

544


What is the protected keyword used for?

613


How do we implement inheritance in c++?

584






What is a class template?

583


What is the full form of ios?

551


Describe public access specifiers?

578


What is a virtual destructor? Explain the use of it?

543


Is there a sort function in c++?

543


What is vectorial capacity?

640


Write a program in C++ for Fibonacci series

655


How many types of comments are there in c++?

574


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3427


Can we specify variable field width in a scanf() format string? If possible how?

657