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.
The static var exists before an instance is made...what object does have them, then? You can't have a Has-a relationships with the static var. Im still studying maybe Im wrong but I dont think so. I hope you understand what I mean...
The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
Joined: Mar 14, 2006
The definition of has-a in the book is: In Instance, that has a reference to the instance of another class. So, in my opinion, a class variable is a reference to an instance, too. It's just the same instance for all objects of this class.