Well done!

You have completed Review Interfaces!

Quiz Question 1 of 10

The follow code is valid for implementing the interface:

interface Colorable
{
    public function color($pressure = 2);
}

class BrownCrayon implements Colorable
{
    private $color = array(0=>'white', 1=>'Tan', 2='Brown');

    public function color($strength = 2){
        return $this->color[$strength];
    }
}

Choose the correct answer below:

Skip Quiz Review Video