2 Replies Latest reply on Sep 7, 2007 11:22 AM by ritpas

    private constructor

    ritpas Level 1
      Hi,

      I am just wondering why a constructor cannot be declared as private under AS 3.0?
      It was possible under AS 2.0 and in many situation it may be logical to declare it as private, for example a class which instanciates its objects only through one of its public static classes.

      Declaring a constructor as private just means that you don't want it to be instantiated by an external entity, doesn't it?

      thanks