A Private constructor if used will force the class instance to be initialized from with in the class. As this is private and class cannot be initialized from outside, we use it for some cases e.g. singleton implementation.
In AS we dont have private constructor and use enforcer class to implement singleton. We than expose a public method that will return instance of the class (that will always be single/null). So as such there is no drawback. Thanks, Akhil Mittal On Aug 9, 10:02 am, kamal <[email protected]> wrote: > Hi All, > question i faced in interview that "is as3 supports private > constructor ?" > through the google search i came to know that As3 not support private > consturctor. > Here i just wanted to know is there any draback if as3 not support > private constructor. Where this really make much diffrence? > > Thank you, > Kamal -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

