我原以为很多人会想知道这是否可能,但我找不到任何重复的问题......请纠正我。
我只想知道PHP是否提供纯虚函数。我想要以下
class Parent {
// no implementation given
public function foo() {
// nothing
}
}
class Child extends Parent {
public function foo() {
// implementation of foo goes here
}
}
非常感谢。