KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I.e. why is the following "cyclic dependency" not possible? public class Something implements Behavior { public interface Behavior { // ... } } Since interfaces don't reference the outer class this should be allowed; however, the compiler is forcing me to define those interfaces outside the class. Is there any logical explanation for this behavior?
Tags (comma-separated)
Save Edits
Cancel