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.
They are instance variables that belong to a class and get initialized before the constructed is called.
SCJP 1.4 - 88%<br />SCWCD 1.5 - Preparing
Joined: Nov 10, 2007
After the constructor is called right?
Joined: Aug 28, 2008
No, before the constructor is called.
Suppose the subclass constructor is called which invokes the superclass constructor then, 1st superclass variables are intialized and the constructor is run. Then controls come to subclass constructor where again 1st subclass variables are intialized and then the constructor run.