pdf

Analysis of inheritance mechanism in OOP

  • 2013-09-22
  • 491.15KB
  • Points it Requires : 2

Inheritance is an important mechanism in object-oriented programming methodology. Using inheritance mechanism to organize and design classes can improve the abstraction level of the program and make it closer to human natural thinking. This paper studies the characteristics of inheritance, conducts comparative analysis through program examples, and explores important properties such as attribute hiding and method overwriting and masking brought by inheritance in C++ language. It is concluded that the use of inheritance can not only make a large amount of code reuse, but also greatly reduce the redundancy of code and data. At the same time, the overwriting of methods can realize true polymorphism, thereby making the program more scalable.  

unfold

You Might Like

Uploader
lamaba
 

Recommended ContentMore

Popular Components

Just Take a LookMore

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
×