【发布时间】:2012-09-04 15:24:10
【问题描述】:
class A
{
static function get_name_derived_class()
{
//This function must return the name of the real class
//Is it possible without insert a methon in B class?
{
}
class B extends A
{
}
B::test()
我想在基类中有一个静态方法,它返回真实(派生)类的名称,而不在其中插入特定方法。可能吗? 谢谢
【问题讨论】:
标签: php static-methods dynamic-binding