Created
May 14, 2015 07:49
-
-
Save nicekiwi/7526a513c1f4f89ba1fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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