M
mortb
Why can't you place static methods in an interface?
For example, if I want an uniform manner to create instances of classes that
implement my interface I'd like to put a static factory mehtod in the
interface. However, this is not possible as the interface does not allow
static memebers.
Is there a good reason for this design?
/mortb
For example, if I want an uniform manner to create instances of classes that
implement my interface I'd like to put a static factory mehtod in the
interface. However, this is not possible as the interface does not allow
static memebers.
Is there a good reason for this design?
/mortb