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
How can we store decimal data in .net?
What is the significance of delegates?
What are the features of c# which are not present in vb.net?
hello thank you for replying to my question regarding adding barcode fonts in vb.net project. I have downloaded a free font and added in my vb.net project but now i dont know how to use that i need to generate barcodes can any body help me how to use those fonts these are font3of9 .i need a small code to use these fonts to generate barcode thank u!
Can you please explain the difference between int and int32?
What is option strict?
How to achieve Polymorphism in VB.Net?
What is the role of new keyword?
Can you please explain the difference between dataset and datareader?
Explain the advantages of vb.net?
What are the difference between dispose(), close(), exit(), end()?
Explain about visual basic.net?
Explain how the .net framework performs automatic memory management.
what is the advantage of option strict on?
Explain the use of option explicit?