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

Is string part of stl?

940


Can we use stl in coding interviews?

1540


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

1907


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.

1583


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.

2174


write a program to convert a decimal number in to its equivalent binary number?

2266


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

907


What is stl in oop?

929


How do you convert stl to steps?

828


What two types of containers does the stl provide?

749


Is stl open source?

839


How is stl different from c++ standard library?

953


When did c++ add stl?

935


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

2096


What does stl stand for in basketball?

832