Name: rm29839 Date: 11/18/97
Please extend the definition of an 'Interface'
to include class (static) methods.
Currently, attempting to expose class methods
via an interface generates a compiler error, e.g.
MyInterface.java:2: Interface methods can't be
native, static, synchronized, final, private,
or protected : void classMethod()
public static void classMethod ();
This limitation forces one to create two classes
and two interfaces (which in turn creates other
difficulties), instead of one of each, in order
to publish class methods e.g. 'Orders' and 'Order'
classes and interfaces. Visual Basic's lack of
class methods forces one to do the same thing.
Noting the other exclusions above, I would also
question why interfaces cannot have final or
(Review ID: 19893)