im assuming the above code is equivalent to:

class foo {

  public function someMethod() { trace("blah blah"); }
}

new foo().someMethod();

just different approaches to the same problem