What is the Difference between Overriding and overloading?
Answer Posted / prachee
overloading has same method but different types of
parameters, number of parameters.
overloading does not take return type to differentiate
overloaded method.
ex:
int add(int a, int b)
int add(float a , float b)
are overloaded methods
overriding comes with inheritance concept.
here parent and child both contains the same method. and
when execution takes place; child's method is called.
Is This Answer Correct ? | 124 Yes | 14 No |
Post New Answer View All Answers
What is enumerator?
How to retrieve images in sql server database through vb.net?
What is the difference between vb 6 and vb.net?
How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently
Explain strong name in .net assembly?
What is the main use of a namespace?
Can you please explain the difference between thread and process?
What is the feature which is common to all .net languages?
What is redim keyword?
Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.
What is the advantage of using system.text.stringbuilder over system.string?
What is the difference between convert.tostring and i.tostring method?
What is the differences between dataset.clone and dataset.copy?
Explain the difference between value and reference types?
What is code access security?