Skip to content

Instantly share code, notes, and snippets.

@VictorFursa
Created August 31, 2016 09:05
Show Gist options
  • Select an option

  • Save VictorFursa/bdb9979e37f06c584b4256d98c2bf058 to your computer and use it in GitHub Desktop.

Select an option

Save VictorFursa/bdb9979e37f06c584b4256d98c2bf058 to your computer and use it in GitHub Desktop.
Полемарфизм ?
Class One {
function foo() {
echo "heelo from class One";
}
function callMe() {
$this->foo();
}
}
Class Two extends One {
function foo() {
echo "Hello from class Two";
}
}
$Two = new two();
$Two->callMe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment