【发布时间】:2011-11-27 21:12:20
【问题描述】:
我原以为很多人会想知道这是否可能,但我找不到任何重复的问题...请纠正我。
我只想知道 PHP 是否提供纯虚函数。我想要以下
class Parent {
// no implementation given
public function foo() {
// nothing
}
}
class Child extends Parent {
public function foo() {
// implementation of foo goes here
}
}
非常感谢。
【问题讨论】:
标签: php pure-virtual