barfoo('bla'); } } $class = new bar; $class->foobar(); // err: Debug Warning: phpfile.php line 3 - Missing argument 1 for foo::__construct() ?>