Reply to Mars Saxman <[EMAIL PROTECTED]> 06-07-25 09:30:
> > It seems like I can't define a shared method in an interface.
>
> That's correct.
>
> Why would you want to? Where would the implementation live?
My reason for wanting it was that I've got an interface that declares how a
certain class should behave, yesterday I wanted to add some functionality to
create a XML representation of the object and to build an object from the
representation.
My code looks best if I can build the object by calling a shared method,
something like
ClassThatImplementsInterace.buildObjectFromXML(node):ClassThatImplementsInterace
Of course I can do all this if I forget about the interface and just use a class
but I wanted to separate the implementation from the declaration of how it
should behave.
jem
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>