You may also want to extend the interface for each child data module, exposing the parent data module’s interface, or the interfaces of the other child data modules. This lets the various data modules in your application server communicate more freely with each other.上述技术:如何在子数据模块中引用主数据模块的接口?谢谢!非常感谢!

解决方案 »

  1.   

    首先感谢你回复。我的意思就是上述英文的机制具体如何实现?
    如何在child data module中调用parent data module中的接口?
      

  2.   

    没太看明白你的意思
    我的理解:
    1、子数据模块要调用父类的数据模块接口,在Delphi中可以使用抽象方法,在父类中不具体实现代码,只是留个接口,然后子类在具体实现。
    2、真正的接口,Delphi中接口的是Interface中继承下来的,你需要实现三个基本的事件,添加、释放、查询接口。用真正的接口最主要的是实现多重继承(我的理解)。