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.
This is one of Dan's question. Answer given as ABCI. My doubt is the inteface member s1 by default is 'public static final'. If that is the case, how come the subclasses are allowed to modify the variable s1. Please explain
The subclasses are not modifiying the static final variable I.s1, they are redefining it. Each of the classes A,B and C has its very own String variable s1. [ October 20, 2004: Message edited by: Barry Gaunt ]