Title: quote
But if your goal is to create a Singleton pattern...check this out:

<http://www.cynergysystems.com/blogs/page/andrewtrice?entry=singleton_in_as3>

Gordon Smith said the following:

I'm afraid that AS3 doesn't allow a constructor to be private.

 

- Gordon

 


From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of pauland2513
Sent: Friday, September 22, 2006 4:29 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re: private constructors in flex

 

--- In [EMAIL PROTECTED]ups.com, "zenwarden" <[EMAIL PROTECTED]> wrote:
>
> Sometimes in Java I declare a constructor private ( I think this is
> called the nullington pattern). Ex: utility classes that have all
> static methods or constants.
>
>
>
> Can and should the same thing be done in flex?
>
> Chris

Yes, it's an OO design pattern not a Java specific one. I haven't
heard of the nullington pattern, but private constructors are used for
the Singleton pattern.

Paul


--
Whether you think that you can, or that you can't, you are usually right.
 - Henry Ford
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to