Created
March 17, 2017 06:18
-
-
Save sleetdrop/ff17b90f7f798f9c276641c4f047b335 to your computer and use it in GitHub Desktop.
impl
This file contains 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 B { | |
public function test_method(); | |
} | |
abstract class A implements B { | |
abstract function test_method(); | |
} | |
class C extends A { | |
public function test_method() { | |
echo 'from ' . __METHOD__ . PHP_EOL; | |
} | |
} | |
$c = new C; | |
$c->test_method(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment