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
Can you please explain the difference between vb and vb.net?
What is branching logic control in VB.NET?
Name and explain some of the exclusive features which are present in vb?
What are the features present in vb 2005?
What is the maximum size of the textbox?
Explain trace in vb.net?
What is a preprocessor directive in vb.net?
How to create a constant in vb.net?
Explain about jagged arrarys ?
Define manifest?
So you know which dll is used for microsoft .net run time?
What are the differences between c# and visual basic.net?
Explain the difference between web.config and machine.config and where it will be ?
What are the features of c# which are not present in vb.net?
What are different types of jit ?