建立 類別的實體∕物件(instance∕object) 需使用「new」關鍵字。 [範例] class MyPerson { // properties private $name; // methods function setName($name) {
確定! 回上一頁