--- "Paananen, Tero" <[EMAIL PROTECTED]> wrote: > > OO programs should be made up of objects passing > > messages to other objects, not calling global functions. > > I would argue a Singleton is no better in this respect. > > The fact that they're instantiated into an object, > don't make Singletons any less "global" than static > methods.
They are instantiated into objects which means you can change the specific type, method implementations, etc. without the app knowing instead of calling a global function. If I wanted to do procedural programming I'd be using Perl, not Java. David > > -TPP - I trim my responses, it saves bits > > ----------------------------------------- > This email may contain confidential and privileged material for the sole > use of the intended recipient(s). Any review, use, retention, > distribution or disclosure by others is strictly prohibited. If you are > not the intended recipient (or authorized to receive for the recipient), > please contact the sender by reply email and delete all copies of this > message. Also, email is susceptible to data corruption, interception, > tampering, unauthorized amendment and viruses. We only send and receive > emails on the basis that we are not liable for any such corruption, > interception, tampering, amendment or viruses or any consequence > thereof. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]