📄 class.musician.php
字号:
class Musician { private $last; private $first; private $bandName; private $type; function __construct($last, $first, $musicianType) { $this->last = $last; $this->first = $first; $this->mtype = $musicianType; } public function getName() { echo $this->first . $this->last; } public function getBand() { echo $this->bandName; } public function getMusicanType() { echo $this->type; } public function setName($first, $last) { $this->first = $first; $this->last = $last; } public function setBand($bandName) { $this->bandName = $bandName; } public function setMusicanType($musicianType) { $this->type = $musicianType; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -