On Sun, Feb 1, 2009 at 8:12 PM, Markus Wiederkehr
<[email protected]> wrote:
> I wonder if it wouldn't be better to change TextBody and BinaryBody
> into abstract subclasses of SingleBody.
>
> For example BodyFactory returns instances of Text/BinaryBody that are
> also SingleBody instances. With the current design the user has to
> cast the objects to access the SingleBody methods..
>
> Opinions?

with the revised design, i think abstract subclasses make more sense

- robert

Reply via email to