Static Interface Methods

by Ryan on August 10, 2007

Interfaces tend to be one of those things that lose attention in the heat of development. For this reason I will hereby declare my lack of experience with creating interfaces. I have implemented (inherited) quite often but it was only when I was asked to create an interface at one of my current contracts that I realized that you cannot have a static method be part of an interface. The reason for this is that an interface is a reference type and it only contains abstract members. Now remembering back to my OOP track at GVSU I remembered distinctly that you can’t have static abstract classes regardless of the scenario and how much it seems to make sense.

Leave a Comment

OpenID

Anonymous

Previous post:

Next post: