name = $name; } public function printName() { print $this->name; } } $obj = new HelloWorld('Matthew Setter'); echo $obj->printName();