Interfaces in Java, just like classes can be nested. An interface declared inside body of another interface is called nested interface. However, the two interfaces exists independently in terms of implemention. It means that one does not needs to implement the methods of both the interface if one implements only one of them. However, inner interface cant exist on its own,
Showing posts with label Nested Interface. Show all posts
Showing posts with label Nested Interface. Show all posts
Subscribe to:
Posts (Atom)