This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Originally posted by k pandu: Interfaces should be at the top level or
Static members of top level class.
There are no such interfaces like non-static,local and anonymous interfaces.
If the interface is in top level class,it should be in static context.
i think it helps you.
what do you mean by static context ? you mean i need to declare that interface as static when ever is use it as inner class ? and can you please tell me the advantages of declaring the interface inside the class?
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE