If i build a class in C#, i can declare a method abstract.
If someone derives from this class, the abstract method
must be overriden for the computation to succeed.
ISTM that an Interface provides a similar service, i.e.,
all methods must be implemented in order for the computation
to succeed.
Why use one or the other? Or maybe both?
Is it because interfaces can be implemented in _any_
language?
--
Grace + Peace,
Peter N Roth
Engineering Objects International
If someone derives from this class, the abstract method
must be overriden for the computation to succeed.
ISTM that an Interface provides a similar service, i.e.,
all methods must be implemented in order for the computation
to succeed.
Why use one or the other? Or maybe both?
Is it because interfaces can be implemented in _any_
language?
--
Grace + Peace,
Peter N Roth
Engineering Objects International
Comment