View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Lab 2 Questions

Why are we using an initialize method to duplicate the greeting string for every instance of each class? Wouldn't it make more sense to store the greeting string in a class property?


True, but in Squeak, even class variables have to be initialized. So prehaps the most sensible way would be to have a class method called defaultGreeting that returns the default greeting. But remember that these Labs, in particular the first few, are designed to be as simple as possible. So just follow the directions :) –Patrick Parker (TA)


This is probably a stupid question, but if you're working on squeak at home, and your mouse doesn't have a center button, how do you do that?

Page 55 in the book. Mark Guzdial

Link to this Page