<br/>&gt; Extra credit: Why would you use a class variable? &nbsp;We know that an instance variable is used to store data within the context of an instance. &nbsp;Why would you want to store data in the context of a class? 
<br/><br/>Window closeAllWindows needs to have a list of all the windows, and sends each one the close message. &nbsp; Or if a instance of a class needed to communicate with other members of its class. &nbsp;For example, a class of helicopter bots that fly together as a group. &nbsp;They would need talk to each other to avoid collisions.
<br/><br/><br/>Sincerely,
<br/><br/>Joe.
<br/><br/><br/><br/><br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/FileDirectory-tp4897377p4897633.html">Re: FileDirectory</a><br/>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at Nabble.com.<br/>