name = $name; } public function getName() { return $this->name; } } $person = new Person(); $person->setName('Codeplay'); echo $person->getName(); ?>