T
Trevor Braun
This is just a thought I wanted to put out there to get some opinions...
I've been programming for a number of years, but until a couple of years
ago, always with VB6, so everything I did to "fake" inheritance was done
with encapsulation. About two years ago, I began working with .NET and C#.
This question has bothered me for a while, but never enough to cause any
great concern in my work.
I just started designing a new project, and the question has popped up
again....
Can you think of a time where you would intentionally choose to use an
interface instead of an abstract, other than as a workaround for the lack
multiple inheritance support? Iss there any general rule or rule of thumb
or best practice that has been formulated that dictates when to use
interfaces vs. when to use abstract classes.
Thanks for any comments.
Trevor
I've been programming for a number of years, but until a couple of years
ago, always with VB6, so everything I did to "fake" inheritance was done
with encapsulation. About two years ago, I began working with .NET and C#.
This question has bothered me for a while, but never enough to cause any
great concern in my work.
I just started designing a new project, and the question has popped up
again....
Can you think of a time where you would intentionally choose to use an
interface instead of an abstract, other than as a workaround for the lack
multiple inheritance support? Iss there any general rule or rule of thumb
or best practice that has been formulated that dictates when to use
interfaces vs. when to use abstract classes.
Thanks for any comments.
Trevor