PHP Designing Interfaces in PHP Introducing Interfaces Define an Interface

Fabian Borges
Fabian Borges
5,584 Points

It is always giving me an error (it looks like you removed Flyable interface)

This is the code

<?php

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

Flyable.php
<?php

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

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,287 Points

The interface is "Flyable" not "FlyableInterface"