4 public function nonStaticInheritedMethod() {
5 echo __METHOD__
, ' of ', static::class, "\n";
6 echo 'this: ', isset($this) ?
'defined' : 'undefined', "\n";
13 public function nonStaticTraitMethod() {
14 echo __METHOD__
, ' of ', static::class, "\n";
15 echo 'this: ', isset($this) ?
'defined' : 'undefined', "\n";
17 public static function staticTraitMethod() {
18 echo __METHOD__
, "\n";
21 abstract static function noGood();
24 abstract final class Utils
extends C
{
27 public static function staticMethod() {
28 echo __METHOD__
, "\n";