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


Please Help Members By Posting Answers For Below Questions

How can we store decimal data in .net?

556


What is the significance of delegates?

532


What are the features of c# which are not present in vb.net?

661


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!

1583


Can you please explain the difference between int and int32?

576






What is option strict?

529


How to achieve Polymorphism in VB.Net?

628


What is the role of new keyword?

643


Can you please explain the difference between dataset and datareader?

560


Explain the advantages of vb.net?

535


What are the difference between dispose(), close(), exit(), end()?

522


Explain about visual basic.net?

672


Explain how the .net framework performs automatic memory management.

574


what is the advantage of option strict on?

618


Explain the use of option explicit?

608