Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    What makes you think you want static methods on an interface? Please explain what you're trying to accomplish. Commented Aug 1, 2011 at 17:49
  • Since you call those methods on the class, not its instances, I don't think static methods are required to be in the interface. Commented Aug 1, 2011 at 17:50
  • You're going about it backwards. Define the interface then implement the functionality. What you're doing sounds all sorts of wrong and isn't likely to be very testable or maintainable in the long run. What is it you're trying to accomplish? Perhaps we can recommend an alternative design. Commented Aug 1, 2011 at 17:51