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

Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1003


What is a modifier in c++?

629


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

635


How would you use the functions sin(), pow(), sqrt()?

738


What is time_t c++?

606






I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

605


Is it possible for a member function to delete the pointer, named this?

608


What is the prototype of printf function?

644


What is the latest c++ version?

603


How do you show the declaration of a virtual constructor?

524


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


Can java be faster than c++?

666


What is ios :: in in c++?

629


Explain the use of vtable.

611


What is the difference between a baller and a reference in C++?

574