老師,問個小問題。
老師我想問個問題,就是那個$this->uniName和$this->destination?在上面沒有封裝,也就是寫成protected?$uniName和protected?$destination的形式,我是不是可以理解成在類中要公共用的地方和__construct中要初始化的屬性才在上面封裝。望解答。O(∩_∩)O
老師我想問個問題,就是那個$this->uniName和$this->destination?在上面沒有封裝,也就是寫成protected?$uniName和protected?$destination的形式,我是不是可以理解成在類中要公共用的地方和__construct中要初始化的屬性才在上面封裝。望解答。O(∩_∩)O
2015-04-04
舉報
2015-04-05
嗯 可以這么理解
^-^...