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