PHP Designing Interfaces in PHP Introducing Interfaces Define an Interface

Julie Dowler
Julie Dowler
7,849 Points

Why won't this work?

They said to add methods to my interface.

Flyable.php
<?php

interface FlyableInterface

{
  public function takeOff();
  public function land();
  public function fly($distance);
}

2 Answers

Rares Conea
PRO
Rares Conea
Pro Student 14,996 Points

They ask you to name your interface "Flyable" not "FlyableInterface"

Fabian Borges
Fabian Borges
4,895 Points

But first task says well done when you use Flyable Interface and the course guides you to always use the Interface word!? Course video miss leads you

Julie Dowler
Julie Dowler
7,849 Points

You're right! I changed it to "Flyable" and it worked.