类方法就是能够通过类名就可以访问的方法
class procedure RegisterModule(Reg:IRegistry);override;
class procedure UnRegisterModule(Reg:IRegistry);override;
这上面就是两个类方法!
注意:
{
类方法不能在 private 和 protected 区;
类方法不能是虚方法;
类方法只能使用类中的、在对象实例化以前的数据.
}
类方法就是能够通过类名就可以访问的方法
class procedure RegisterModule(Reg:IRegistry);override;
class procedure UnRegisterModule(Reg:IRegistry);override;
注意:
{
类方法不能在 private 和 protected 区;
类方法不能是虚方法;
类方法只能使用类中的、在对象实例化以前的数据.
}