PHP Designing Interfaces in PHP Introducing Interfaces Define an Interface

Fabian Borges
Fabian Borges
4,896 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
PRO
KRIS NIKOLAISEN
Pro Student 46,099 Points

The interface is "Flyable" not "FlyableInterface"