# Constructor

**URL:** <https://forum.kirupa.com/t/constructor/321772>\
**Category:** Uncategorized\
**Created:** [April 30, 2011, 10:28pm UTC](https://forum.kirupa.com/t/constructor/321772 "2011-04-30T22:28:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbo](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tbo](https://forum.kirupa.com/u/tbo)\
**Post date:** [April 30, 2011, 10:28pm UTC](https://forum.kirupa.com/t/constructor/321772/1 "2011-04-30T22:28:49Z")

</div>

horrible tite i know.

so i think flash auto format recently removed my parenthesis for some reason. I am surprised to see this still worked.

```auto
addChild(new myClass);

```

I always write (),

```auto
addChild(new myClass());

```

i thought i needed to because i am calling the constructor function.

so i thought somehow it might not call the constructor, but that makes no sense. So there is no difference, but why does it work without the (), is the compiler just ignoring it and adding them after anyway?

i suppose if your not passing anything, you can just leave out the () ?
