首页> 外文期刊>Ada letters >Gem #48: Extending Interfaces in Ada 2005
【24h】

Gem #48: Extending Interfaces in Ada 2005

机译:宝石48:在Ada 2005中扩展接口

获取原文
获取原文并翻译 | 示例
       

摘要

Ada 2005 introduced the notion of interfaces for designing object classes. While interfaces are extremely convenient for implementing new hierarchies, they can be difficult to extend once they've started to be used. The addition of a new primitive can break all type derivations, as a type has to implement all abstract primitives inherited from its parents. In this Gem, we'll see two ways to overcome this problem, one OOP-generic, and one specific to Ada 2005.
机译:Ada 2005引入了用于设计对象类的接口的概念。尽管接口对于实现新的层次结构非常方便,但是一旦开始使用它们就可能很难扩展。添加新原语可能会破坏所有类型派生,因为类型必须实现从其父级继承的所有抽象原语。在本《 Gem》中,我们将看到两种解决此问题的方法,一种是OOP通用的,另一种是Ada 2005专用的。

著录项

  • 来源
    《Ada letters》 |2009年第1期|78-79|共2页
  • 作者

    Quentin Ochem;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

  • 入库时间 2022-08-17 13:36:58

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号