On 7/8/07, Sammy Larbi <[EMAIL PROTECTED]> wrote:
I don't think static methods (or class methods) are especially object oriented. Certainly they /can/ be acceptable in your code, but they are more procedural in nature.
I tend to agree. Languages that provide "static" methods as methods of the "class" object associated with the type of a given object fudge this somewhat by actually having them be object methods (rather than class methods, aka static methods). Smalltalk takes this approach. JavaScript has this approach too, to some extent, since you can define class types with methods or use prototype methods (which lead to object methods). In Java, however, static methods are really just UDFs that are "loosely" associated with the class in which they are defined. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org