本帖最后由 hero0524 于 2009-09-11 16:59:56 编辑

解决方案 »

  1.   

     NormalUser 要实现全部抽象类的方法!
      

  2.   

    class NormalUser extends AbstractUser {
        protected $discount = 1.0;
        protected $grade = "NormalUser";
        public function getName(){ // 要实现接口中的这个方法
        }
    }其实错误提示已经很清楚了
    Fatal error: Class NormalUser contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (User::getName)