摘要
在编程开发过程中,开发者时常需要考虑代码重用、维护、扩展的问题,以避免逻辑过于复杂难懂.面向对象编程正是为了解决这一问题而产生的编程范式,它通过将具体事物抽象成模型的方式来反映原事物的特征,具有重用性、灵活性、可拓展性的特点.遵守面向对象设计原则能够帮助开发者更好地运用面向对象编程,做到高内聚低耦合.
In the process of programming development,developers often need to take into account the problems of code reuse,maintenance and extension to avoid overly complicated logics.Object-oriented Programming is a programming paradigm specifically developed for solving this problem.It abstracts concrete objects into models and reflects the characteristics of the original objects through the models,and has features of reusability,extensibility,and flexibility.Adhering to the principles of object-oriented programming can help developers better use object-oriented programming and achieve high cohesion and low coupling.
作者
陈泽宇
蔡颖慧
陈方苇
吴凡
CHEN Zeyu;CAI Yinghui;CHEN Fangwei;WU Fan(Information Science and Technology School of Zhejiang Shuren University,Hangzhou,Zhejiang,310015,China)
出处
《浙江树人大学学报(自然科学版)》
2019年第1期18-22,共5页
Journal of Zhejiang Shuren University(Acta Scientiarum Naturalium)
基金
2018年度国家级大学生创新创业训练计划(201811842004)
2018年度浙江省大学生科技创新项目(2018R421023)
关键词
面向对象编程
抽象模型
高内聚低耦合
Object-oriented Programming
abstract model
high cohesion and low coupling