Jump to content

Recommended Posts

Posted

I have never used nested interfaces. The only case I can see where this is sensible is the multi-layered Sealed Interface pattern, e.g.

interface Event { 
    // definitions 
     
    interface Foo extends Event { 
        // Foo-specific event definitions 
    } 
 
    interface Bar extends Event { 
        // Bar-specific event definitions 
    } 
} 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...