Initializing and using class variables

Ralf Bokelberg squeak at bokelberg.de
Mon Jan 20 12:21:14 CET 2003


How can i initialize and use class variables ?
Is initialize ever executed by the class ?

------------------
initialize
 "Initialize the class variables"

 Transcript show: 'Initializing class WorldBouncer '; cr.
 CoeffDrag _ 0.03.
 Gravity _ 9.81.

 "WorldBouncer initialize."

------------------
initialize
 "Initialize the instance"

 Transcript show: 'Initializing instance of WorldBouncer. Gravity: '; show:
Gravity; cr.
 "Why Gravity is nil ?"

kind regards
bokel




More information about the Squeak-dev mailing list

Squeak-dev list courtesy of The InternetOne and tric, the new way