Created
May 22, 2015 10:41
-
-
Save arildm/fa284174a5d5c567ea27 to your computer and use it in GitHub Desktop.
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 Vehicle { | |
public function getNumberOfWheels(); | |
} | |
abstract class Bicycle { | |
// Does not declare the method in the interface, and that's fine. | |
} | |
class Tricycle extends Bicycle { | |
public function getNumberOfWheels() { | |
return 3; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment