我在PHP中有以下代码:
abstract class Development
{
static function testUnit()
{
echo get_class();
}
}
class Component extends Development
{
}
Run Code Online (Sandbox Code Playgroud)
但是如果我正在调用Component :: testUnit();
我正在接收开发而不是组件。我很困惑,因为我猜这种静态函数没有任何意义。