[Newbies] Re: how do i initialize class variables?

Ang BeePeng beepeng86 at yahoo.com
Wed May 12 15:11:07 UTC 2010


You only need to initialize it once. Class variable wont be initialize at
every object creation, but the variable might change, yes. 

For example, if you have 

Object subclass: #MyClass
	instanceVariableNames: ''
	classVariableNames: 'MyClassVar'
	poolDictionaries: ''
	category: ''

	MyClassVar := anObject

then, do this once 

	"MyClass initialize"


Ang Beepeng
View this message in context: http://forum.world.st/how-do-i-initialize-class-variables-tp2195922p2196203.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.

More information about the Beginners mailing list