What is the Difference between Overriding and overloading?
Answer Posted / nazrul
overriding->
1) method should be public.
2)it need inheritance.
3)it need virtual keyword before it declartion.
4)it have same name with same parameter in diffrent class.
5)it require non-static method.
6)method should have same datatype.
Overloading->
1)method can be different access speicifier.
2)it doesn't need inheritacne.
3)all method should be in same class.
4)method can have diffrent datatypes
| Is This Answer Correct ? | 88 Yes | 8 No |
Post New Answer View All Answers
What is the advantages of VB.NET?
Which class allows an element to be accessed using unique key?
Explain the advantages of vb.net?
What do you mean by Redim in VB.NET?
what is the advantage of option strict on?
Explain some of the exclusive features which are present in vb?
Write a program to find all text files in a logical drive and return the count of the number of files?
Describe about visual basic.net?
What is the difference between convert.tostring and i.tostring method?
Explain strong name in .net assembly?
Explain jit?
Explain the difference between vb 6 and vb.net?
Explain about visual basic?
Name the two main parts of .net?
Can you please explain the difference between dataset and datareader?