<?php
abstract class hey {
protected function hello() {
echo 'hello from hey';
}
}
class lol extends hey {
protected function hello() {
echo 'hello from lol';
}
public function do_hello() {
self::hello();
parent::hello();
}
}
$lol = new lol();
$lol->do_hello();
PD9waHAKYWJzdHJhY3QgY2xhc3MgaGV5IHsKCXByb3RlY3RlZCBmdW5jdGlvbiBoZWxsbygpIHsKCQllY2hvICdoZWxsbyBmcm9tIGhleSc7Cgl9Cn0KY2xhc3MgbG9sIGV4dGVuZHMgaGV5IHsKCXByb3RlY3RlZCBmdW5jdGlvbiBoZWxsbygpIHsKCQllY2hvICdoZWxsbyBmcm9tIGxvbCc7Cgl9CglwdWJsaWMgZnVuY3Rpb24gZG9faGVsbG8oKSB7CgkJc2VsZjo6aGVsbG8oKTsKCQlwYXJlbnQ6OmhlbGxvKCk7Cgl9Cn0KJGxvbCA9IG5ldyBsb2woKTsKJGxvbC0+ZG9faGVsbG8oKTs=