检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]南阳理工学院计算机科学与技术系,河南南阳473004
出 处:《电子设计工程》2011年第8期29-31,37,共4页Electronic Design Engineering
摘 要:继承是面向对象程序设计方法学中重要的机制。采用继承机制来组织和设计类,可以提高程序的抽象程度,使之更接近与人类的自然思维。研究了继承的特点,通过程序实例,进行对比分析,探讨了C++语言中由继承带来的属性的隐藏和方法的覆盖、遮蔽等重要性质,得出使用继承不仅可以使得大量的代码可以复用,而且可以大大减少代码和数据的冗余度,同时由方法的覆盖可以实现真正意义上的多态,并由此使得程序具有更好的扩展性。Inheritance is an important mechanism of object-oriented programming methodology. Using the inheritance mechanism to organize and design classes, the program can improve the level of abstraction, making it more close to the nature of human thought. It studies the inheritance of characteristics in C ++ language, brought by the succession of the hidden properties and methods of coverage, shelter and other important properties by instances, comparative analysis. The results show that using the inheritance not only can make a lot of code reuse, but also can significantly reduce the redundancy of code and data, while the coverage can be achieved by the method of truly multi-state, and thus makes the application more scalability.
分 类 号:TP393[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222