[Newbies] Design best practice : put state-independent methods onclass side?

Ramon Leon ramon.leon at allresnet.com
Tue Mar 25 19:51:20 UTC 2008


> I'm guessing you like that the class methods can be invoked 
> easily from the class name. What you want is a well known object.

Like a class?

> I wouldn't use a class object just to create a well known 
> object. I'd probably start with a Singleton and work from there.

Like a class?  Classes are singletons, what do you have against using them
as such?

Ramon Leon
http://onsmalltalk.com



More information about the Beginners mailing list