# Child class calls super Constructor

**URL:** <https://forum.kirupa.com/t/child-class-calls-super-constructor/201585>\
**Category:** flash\
**Created:** [September 22, 2006, 6:08pm UTC](https://forum.kirupa.com/t/child-class-calls-super-constructor/201585 "2006-09-22T18:08:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balala](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@Balala](https://forum.kirupa.com/u/Balala)\
**Post date:** [September 22, 2006, 6:08pm UTC](https://forum.kirupa.com/t/child-class-calls-super-constructor/201585/1 "2006-09-22T18:08:03Z")

</div>

Hi :bu:

I got something just like that:

```auto
import Two;

class One
{
  public function One()
  {
    var two:Two = new Two();
  }
}

```

```auto
class Two extends One
{
  public function Two()
  {
    trace("new class Two called");
  }
}

```

I dont know if that is **normal** , but this code create an infinite loop, because when i create a new instance of class Two, because of the **extends** , the class One constructor is called again, and creating a new instance of class Two, and so on…

I know how can i get this fixed, but, what i want to know is, this is correct? Its a Flash bug? Isnt that way in AS3?

Thanks in advance 🙂
