Skip to content

Instantly share code, notes, and snippets.

@arildm
Created May 22, 2015 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arildm/fa284174a5d5c567ea27 to your computer and use it in GitHub Desktop.
Save arildm/fa284174a5d5c567ea27 to your computer and use it in GitHub Desktop.
<?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