草庐IT

drawBody

全部标签

php - 理解 php 中的继承

我刚开始在PHP中使用OOP(一般情况下),我有一个关于继承的问题。我有以下类(class):classOCITable{publicfunctiondisplay(){$this->drawHeader();$this->drawFooter();$this->drawBody();}privatefunctiondrawHeader(){...}privatefunctiondrawFooter(){...}privatefunctiondrawBody(){...}}classOCITableServerextendsOCITable{privatefunctiondrawBod