Possible Duplicates:
interface and abstract class.
Abstract classes vs Interfaces
Can anyone tell me when one should use an abstract class and when one should use an interface with sample scenarios?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re defining behavior (like
IEnumerable, since aListacts like anIEnumerable), then use an interface, but if you’re defining a kind of object (an IS-A) relationship, use an abstract class (likeStream— since aMemoryStreamIS-AStream).