Created
August 31, 2016 09:05
-
-
Save VictorFursa/bdb9979e37f06c584b4256d98c2bf058 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
| 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