# Constructors can't be private?

**URL:** <https://forum.kirupa.com/t/constructors-cant-be-private/299002>\
**Category:** flash\
**Created:** [October 28, 2009, 1:39pm UTC](https://forum.kirupa.com/t/constructors-cant-be-private/299002 "2009-10-28T13:39:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [October 28, 2009, 1:39pm UTC](https://forum.kirupa.com/t/constructors-cant-be-private/299002/1 "2009-10-28T13:39:43Z")

</div>

I was trying to develop a system where instances of an object can only be created using static functions.

Setting the constructor to private gave me the following error:  
_1153: A constructor can only be declared public._

Any workaround? Any reason why I’m not allowed to hide the constructor?
