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
Explain the difference between web.config and machine.config and where it will be ?
What is the source code for display the picture in button click event?
What keyword is used to accept a variable number of parameter in a method?
What are the types of generations in garbage collector?
Explain the difference between vb.net and c#, related to oops concepts?
Define serialization in .net?
What is the purpose of objects present in asp.net?
What are the parts of the visual basic control?
Explain the services provided by common language infrastructure.
Before in my vb app I would just load the icons from dll. How can I load the icons provided by .net dynamically?
Explain the difference between datatable and dataset?
Compare c# and visual basic.net?
What is break mode? What are the options to step through code?
What are the objects in asp.net?
How to store decimal data in .net?