--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> I'm afraid that AS3 doesn't allow a constructor to be private.

Thanks Gordon - I didn't realised they'd changed that since AS2.

Seems bizarre.

Paul


> 
>  
> 
> - Gordon
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of pauland2513
> Sent: Friday, September 22, 2006 4:29 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: private constructors in flex
> 
>  
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "zenwarden" <cwarden@> 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
>







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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to