n fact static method calls are resolved at compile time. When using an explicit class name the method is already identified completely and no inheritance rules apply. If the call is done by self then self is translated to the current class, that is the class the code belongs to. Here also no inheritance rules apply.
解决方案 »
- 求个PHP 无限分类 带添加 修改的那种
- 关于php清除缓存的脚本
- 看看这个 http://www.google.com.hk/ 好生动啊
- 学习php,指导下吧
- 各位都给我点意见咯,有关于学习PHP......
- 能不能在不创建实例的情况下获取一个类是否是另一个类的子类
- 简单问题
- 求助!!我想知道一个网站是如何编的
- 大侠,帮我写一个用PHP开发WEB应用程序的详细步骤吧
- 老天啊~~~~~为什么我从来没有配置成功win2000下的apache+php模块方式???
- !!!!!高分求教smarty显示记录集,在线等。。。。。。。。。。。。。。。。。。。。。。。。
- 页面操作一段时间后没有响应,提示重新登陆的php代码
翻译了就给满分阿。
如果由自身调用,那么自身被解析成当前的类,也就是代码所属的类。这里也没有应用继承规则。
但是我有个疑问,就是这里并不一定有继承,为什么要提到继承规则呢。
这个问题是额外的问题哦。上面你的回答已经有20分了。