Start your All-Access Pass to unlock this challenge
Challenge 1 / 2
A co-worker created a few classes and has asked for your advice about organizing them:
class Ship
{
private $name;
public function getName()
{
return $this->name;
}
public function setName($name)
{
$this->name = $name;
}
// other stuff...
}
class Person
{
private $name;
public function getName()
{
return $this->name;
}
public function setName($name)
{
$this->name = $name;
}
// other stuff...
}
Your teammate is wondering if this can be organized better. Which if the following is the best advice?
Skip challenges and go to theNext Chapter