OOP (course 3): Inheritance, Abstract Classes, Interfaces and other amazing things
Creating an Abstract Ship
  Start your All-Access Pass to unlock this challenge
Buy Access Login

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

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.