[Newbies] Re: FileDirectory

Joseph Alotta joseph.alotta at gmail.com
Thu May 26 20:32:00 UTC 2016

> Extra credit: Why would you use a class variable?  We know that an instance variable is used to store data within the context of an instance.  Why would you want to store data in the context of a class? 

Window closeAllWindows needs to have a list of all the windows, and sends each one the close message.   Or if a instance of a class needed to communicate with other members of its class.  For example, a class of helicopter bots that fly together as a group.  They would need talk to each other to avoid collisions.



View this message in context: http://forum.world.st/FileDirectory-tp4897377p4897633.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20160526/38ea2836/attachment.htm

More information about the Beginners mailing list