Are there any reason for mehtod in the interface can't be marked static?
My Way,My Pace
posted 11 years ago
You can get an idea by trying to code it:
The compiler tells us:
So the interface method mm can't have an implementation, it is an abstract method. To give mm an implementation you must override the method in a class implementing the interface. But you cannot override static methods.
An abstract class can have a static method but its implementation must be provided by the abstract class.
[ May 25, 2004: Message edited by: Barry Gaunt ] [ May 25, 2004: Message edited by: Barry Gaunt ]