PHP面向對象之封裝和繼承

一、面向對象-類的常規寫法 // 定義學生類 class Student { public $name; public $age; public $sex; public $score; // 成績 public function __construct($name, $age, $sex, $score) { $this-
相關文章
相關標籤/搜索