Answered
private constructor
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
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