# Class Question

**URL:** <https://forum.kirupa.com/t/class-question/227340>\
**Category:** Uncategorized\
**Created:** [May 29, 2007, 3:29pm UTC](https://forum.kirupa.com/t/class-question/227340 "2007-05-29T15:29:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgallen23](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jgallen23/32/3678_2.png) [@jgallen23](https://forum.kirupa.com/u/jgallen23)\
**Post date:** [May 29, 2007, 3:29pm UTC](https://forum.kirupa.com/t/class-question/227340/1 "2007-05-29T15:29:59Z")

</div>

Is there any difference in doing something like

```auto

public class Blah extends Sprite
{
      var _test:TextField = new TextField();

      public function Blah():void()
      {
      }
}

```

vs

```auto

public class Blah extends Sprite
{
      var _test:TextField;

      public function Blah():void()
      {
             _test = new TextField();
      }
}

```

just wondering which method is correct (if there is a correct way)
