arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1405.2066cs.SE
收藏

如何以及何时扁平化Java类?

How and When to Flatten Java Classes?

Jehad Al Dallal

摘要:

提高模块性和可重用性是面向对象编程的两个关键目标。这些目标是通过应用几个关键概念来实现的,例如数据封装和继承。面向对象系统中的类是设计的基本单位。评估一个面向对象类的质量可能需要扁平化这个类,并如实地表示它,包括所有可访问的继承类成员。因此,类扁平化有助于探索继承对提高代码质量的影响。本文解释了如何扁平化Java类,并讨论了类扁平化和一些软件从业者感兴趣的应用程序,如重构和指示外部质量属性之间的关系。

英文摘要:

Improving modularity and reusability are two key objectives in object-oriented programming. These objectives are achieved by applying several key concepts, such as data encapsulation and inheritance. A class in an object-oriented system is the basic unit of design. Assessing the quality of an object-oriented class may require flattening the class and representing it as it really is, including all accessible inherited class members. Thus, class flattening helps in exploring the impact of inheritance on improving code quality. This paper explains how to flatten Java classes and discusses the relationship between class flattening and some applications of interest to software practitioners, such as refactoring and indicating external quality attributes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑