2014-05-22 总结

1、static:静态的

     静态对象不属于对象,它只属于一个类

         class Person{ 

          static $type="小孩";

          public $name;

          public $pwd;

     }

2、调用静态对象:person::$type

     类本身调用静态对象:self::$type

3、extends:继承

     

    

posted @ 2014-05-22 23:50  失忆^ Dreams  阅读(77)  评论(0编辑  收藏  举报