3、當子類和父類別都有 __construct() 函數的時候,如果要在初始化子類的時候同時呼叫父類別的__constrcut(),則可以在子類中使用 parent::__construct() .
確定! 回上一頁