Skip to content

Instantly share code, notes, and snippets.

@fasmide
Created Sep 8, 2014
Embed
What would you like to do?
<?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