Created
September 8, 2014 18:38
-
-
Save fasmide/0826d56db99eee8cd4cb 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 | |
class Q { | |
public function __construct() { | |
$this->hej(); | |
} | |
} | |
class B extends Q { | |
public function hej() { | |
echo "hej "; | |
} | |
public static function Muh() { | |
echo "muh "; | |
} | |
} | |
class Abe { | |
public function __construct() { | |
B::Muh(); | |
} | |
} | |
new B(); | |
B::Muh(); | |
new Abe(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment