This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
A top-level interface cannot be private or protected. Can an inner interface be private or protected? Thanks.
posted 15 years ago
Hi Jordan, An interface declared within a class can be 'private' or 'protected'. You cannot declare an 'inner interface' in an interface declaration.
Remember that all interface members are implicitly 'public', making it impossible to declare an interface inside an interface as 'private or protected' Hope that helps. ------------------ Jane Griscti Sun Certified Programmer for the Java� 2 Platform