單項選擇題

如何在類的內部調用getName方法?()

A.$self=>getName();
B.$this->getName();
C.$current->getName();
D.$this::getName();

微信掃碼免費搜題