This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Yes, you could say that. For each object (= instance of a class) space is allocated for the instance variables; for static variables, there's only 1 set of them that is shared between all the instances of a class.
Methods consist of executable byte code, and there's always only one copy of the byte code necessary, whether the method is static or not. [ October 26, 2005: Message edited by: Jesper de Jong ]
Even before there were objects some operating systems separated code and data this way. They only need to load one copy of the code no matter how many users or threads are executing it, but each user or thread needs its own copy of the data to work on. It's pretty cool when you get into how it works.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi