When and where do i have to use a static interface?
Help me!Help you!!!
posted 13 years ago
The only place where you can have a static interface is when you declare an interface as a class member; in that case, the interface *must* be static. This effectively makes it a top-level interface, but means that when you use it outside the enclosing class, you must qualify the interface's name with the name of the enclosing class. i.e,
To use Bar outside of Foo, you must qualify the name like this: Foo.Bar myBarObject;