Click here to Skip to main content
14,845,591 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
to declare abstract method what you will use interface or abstract class and why
Posted
Comments
Debopam Pal 1-Dec-13 11:29am
   
Do not proceed with any topic without knowing it. And we're here to solve questions not to give lecture on a particular topic. I refer you to search about this topic in CodeProject's Article/Technical Blog/Tips/Tricks Section.

1 solution

Offcourse you should Abstract Class only..

Please understand the difference between abstract class and interface

both are c# types..

Using Abstract or interface depends on the requirement of code block

Go through these links to have a clear idea on both



http://stackoverflow.com/questions/1231985/when-to-use-interfaces-or-abstract-classes-when-to-use-both


http://msdn.microsoft.com/en-us/library/scsyfw1d(v=vs.71).aspx
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900