Diffrernce Between Overloading and Overriding?

Answer Posted / sourisengupta

OverLoading :- Method Name remains the same with different
signatures.
For ex:- Take a method name vehicle.
if u are passing two parameters to it , it will generate
informations for 2 wheelers .
if u are passing four parameters to it, it will generate
informations for 4 wheelers.

shortly we can tell same with different characteristics.

Overriding : - Method name and signatures must be same.
In overriding user can change the behaviour of the method
for the derived class.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1881


What do stl stand for?

629


a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

1366


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1846


How do you convert stl to steps?

620






What are the components of stl?

611


What are the various types of stl containers?

721


What are the different types of stl containers?

639


What is a stl vector?

619


sir please send me bpcl previous question papers

1945


What is meant by stl in c++?

644


What is stl stand for?

727


What is a standard template library (stl)? What are the various types of stl containers?

659


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1965


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

1692