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
List the two main parts of .net?
What is the Advantage of vb.net over vb
what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.
What is the importance of a Button control?
What is the difference between Namespace and Assembly?
Can you please explain the difference between c# and vb.net?
What is private assembly?
Define naming convention?
Explain global assembly cache (gac)?
What keyword is used to accept a variable number of parameter in a method?
How to store decimal data in .net?
i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate
Explain how can we remove handlers at run time?
Can you please explain the difference between int and int32?
What are the different variables in vb.net?