Skip to content

Instantly share code, notes, and snippets.

@nicekiwi
Created May 14, 2015 07:49
Show Gist options
  • Select an option

  • Save nicekiwi/7526a513c1f4f89ba1fd to your computer and use it in GitHub Desktop.

Select an option

Save nicekiwi/7526a513c1f4f89ba1fd to your computer and use it in GitHub Desktop.
<?php
interface Animal {
public function communitcate();
}
abstract class Boat {
public function load() {
return 'loaded';
}
}
class Thing extends Boat implements Animal {
public function communitcate() {
return $this->load();
}
}
echo (new Thing)->communitcate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment