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>

Reply via email to