Thanks 4 clearing up my misunderstanding.
Regards,
Steven Fraser
-Original Message-
From: Zhang Yining [mailto:[EMAIL PROTECTED]]
Sent: 20 April 2002 01:41
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Abstract classes
I don't think that strategy pattern mandates th
I don't think that strategy pattern mandates the use of interface and
not abstract classes.
However, as we know, abstract classes can have implementation code
within it, but interfaces can only define method signatures, so a good
thing about using abstract classes is that we can use another patte
It usually depends on what the statagey is for, and how much implementation
you need to share.
A class can inherit from (implement) multiple interfaces, but only inherit
one class which could be abstract.
An interface is the method definitions only, where an abstract class can
contain some defaul