That's a good idea... But I dont get why it's not possible. I don't see a reason why it shouldn't be possible. There is probably a very good one, but I dont see it.
Maarten On 02/05/06, Jason Essington <[EMAIL PROTECTED]> wrote:
well, in java it is possible to add constants to an interface (not properties) however, it is usually referred to as an anti-pattern, and you'll run into developers who will try to break your fingers (or at least ridicule you) if they catch you doing it. properties are an implementation detail, not an api, so they really have no place in an interface. If you think your interface should include some property, maybe it is best to have a getter and a setter for said property, then it can be handled by the implementing class. -jason On May 2, 2006, at 10:59 AM, Maarten de Vries wrote: > lol.... maybe it should be... > > On 02/05/06, Aliacta <[EMAIL PROTECTED]> wrote: >> >> >Is it possible to add properties to a class interface? >> >> no. _______________________________________________ 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>
_______________________________________________ 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>
