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.
Check all correct answers a) An inner class can have the same name as its enclosing class. b) An instance of a non static inner class always has an associated instance of the enclosing class c) An anonymous inner class is always assumed to extend Object. Ans: b) I choose b,c why is c not a correct answer?
<a href="http://www.rajindery.com" target="_blank" rel="nofollow">Rajinder Yadav</a><p>Each problem that I solved became a rule which served afterwards to solve other problems. --Rene Descartes
As the name implies, anonymous inner classes have no name. Instead the use the name of the class that they subclass which can be any class... Beware that because of this way of declaration they do not use extends! Erik Dark [ February 24, 2002: Message edited by: Erik Dark ]