📜  在 php 代码示例中扩展多个类

📅  最后修改于: 2022-03-11 14:53:44.782000             🧑  作者: Mango

代码示例1
// this is NOT allowed
Matron extends Nurse, HumanEntity
  
You cannot have a class that extends two base classes. You could not have.

You could however have a hierarchy as follows...

Nurse extends HumanEntity 
Matron extends Nurse