[Q] new and initialize

Brian Brown rbb at techgame.net
Tue Apr 1 23:23:48 UTC 2003

What is the relationship between new and initialize? I see examples like:

	var := SomeClass new initialize.

and  also
	var := SomeClass new.

Does initialize automatically get called upon object creation, or is just 
another message that I can chose to call or not? I see classes both with and 
without initialize and I can understand there may be no instance setup 
required or maybe a superclass does it....



More information about the Squeak-dev mailing list