Diffrernce Between Overloading and Overriding?
Answers were Sorted based on User's Feedback
Answer / anupam mittal
In overloading all the function have same name but
different in no. of argument, type of argument and oreder
of argurmnt while in case of overriding both function are
defined in differenet class when a function inherit from
parent class and there is a function with same prototype in
child class then child class function override the parent
class funciton.
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / 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 |
tell about sorted linked list
what are you now programming Languages C+
5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3
Write a program in C++ to concatenate two strings into third string using pointers
What is stl stack?
what is the acronym of the term 'C.O.M.P.U.T.E.R' ?
17 Answers Config Systems, Google, Wipro,
Is stl open source?
how to swap two numbers in a linked list without exchanging the data but only the links?
When did c++ add stl?
How do you convert stl to steps?
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
sir please send me bpcl previous question papers
0 Answers BPCL Bharat Petroleum,