摘要:
默认animal.php的代码如下:<?phpclass animal{ public $head; private $height; protected $width; public function __construct($height,$width)//属性和成员函数默认是public形式,所以public可以不用写 { $this->height=$height; $this->width=$width; echo '<br>我是animal类构造函数的输出<br>'; } public function move() { . 阅读全文
posted @ 2013-03-08 17:39
qingq
阅读(217)
评论(0)
推荐(0)
摘要:
class animal{ public $head; private $height; protected $width; public function __construct($height,$width)//属性和成员函数默认是public形式,所以public可以不用写 { $this->height=$height; $this->width=$width; echo '<br>我是animal类构造函数的输出<br>'; } public function move() { echo '<br>我是move方 阅读全文
posted @ 2013-03-08 15:37
qingq
阅读(341)
评论(0)
推荐(0)

浙公网安备 33010602011771号