首页> 外文会议>2012 International Conference on Computer Communication and Informatics >Better alternative Run-Time Polymorphism in C++: A practical approach in OO design for machine intelligence
【24h】

Better alternative Run-Time Polymorphism in C++: A practical approach in OO design for machine intelligence

机译:C ++中更好的替代运行时多态性:面向机器智能的OO设计中的实用方法

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

摘要

Main essence of polymorphism feature of Object Oriented Programming provided by the developer Bjarne Stroustrup in C++ is Run Time Polymorphism using virtual member functions in base classes. Base class pointer keeps the address of derived class object but during run-time it calls the base class function, even functions in base and derived classes have same signatures. To call the same function of derived class by base class pointer, we make the base class function as virtual to implement “Run-Time polymorphism”. Several papers by different authors including developer of C++ have come to solve the related complexities like “Object Slicing” and others. In this paper our motivation is to analyse and explore alternative adaptation by type identifier with polymorphic behaviour of type cast combining the overloading of insertion and extraction operators. Analysing the approaches we find a better alternative style of Run-Time Polymorphism that uses less memory than the existing virtual method techniques by comparable performance.
机译:由开发人员Bjarne Stroustrup用C ++提供的面向对象编程的多态性功能的主要本质是在基类中使用虚拟成员函数的运行时多态性。基类指针保留派生类对象的地址,但是在运行时它将调用基类函数,即使基类和派生类中的函数具有相同的签名。为了通过基类指针调用派生类的相同函数,我们将基类函数设为虚拟,以实现“运行时多态”。不同作者(包括C ++开发人员)的几篇论文已经解决了相关的复杂问题,例如“对象切片”等。在本文中,我们的动机是通过结合插入和提取运算符的重载来分析和探索通过类型标识符与类型转换的多态行为进行的替代适应。通过分析这些方法,我们发现了一种更好的运行时多态替代样式,与现有的虚拟方法技术相比,该样式使用更少的内存,并且具有可比的性能。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号