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

State the difference between delete and delete[].

805


You want to link a c++ program to c functions. How would you do it?

743


Describe Trees using C++ with an example.

851


How to implement is-a and has-a class relationships?

781


What is a static element?

811


what Is DCS ? what i will get benefit when i did?

2053


What are the various arithmetic operators in c++?

813


Can we make any program in c++ without using any header file and what is the shortest program in c++.

842


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

800


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

878


What are the differences between malloc() and calloc()?

875


If there are two catch statements, one for base and one for derived, which should come first?

779


What are single and multiple inheritances in c++?

786


What do you mean by translation unit?

835


What's the most powerful programming language?

799