|
Re: Abstract Classes vs Interfaces
|
Posted: Aug 12, 2003 4:08 AM
|
|
I have sometimes wondered that too, but I usually stick to the rule where I use an abstract class as a bit of a class, in that I know what some of the implementation is going to be and put those bits in and the rest of the stuff leave to be added in by subclasses.
I use interfaces just where I want to define what set of operations will be available, so for example, if I'm working on a group project, I can agree the interface to say a Clock object with a friend and they can implement it while I can write the code that uses it and when we finish, it should work fine.
Hope that helps in some way,
|
|