期刊文献+

面向对象程序设计基本原则探析 被引量:2

Analysis of the Basic Principles of Object-oriented Programming
下载PDF
导出
摘要 OOP即面向对象程序设计.OOP中引入了接口、抽象类、继承、多态等概念,但是在使用这些特性进行设计的时候经常会产生接口、抽象设计混乱,类设计、类耦合和依赖不合理等问题.本文给出了OOP设计时要遵循的设计原则,即单一职责,迪米特,依赖倒转,里氏替换,接口隔离,开闭原则,合成/复用等原则.每一个原则都蕴含了一些面向对象程序设计的思想,因而可以从不同的方面使得软件设计和开发得到提高. Object-oriented programming(OOP) introduces concepts such as interfaces, abstract classes, inheritance, and polymorphism. However, when designing with these features, interfaces, abstract design confusion, class design, class coupling, and unreasonable dependencies are often generated. We provide design principles to be followed in OOP design, namely single responsibility, Least Knowledge, dependence Inversion, Liskov Substitution, interface Segregation, Open-Closed principles, Composite Reuse and other principles. Each principle conrains ideas for object-oriented programming, which can improve software design and development from different aspects.
作者 白青海 BAI Qing-hai(College of Computer Science and Technology,Inner Mongolia University for Nationalities,Tongliao 028043,China;Institute of Computer Applieation Teehnology,Inner Mongolia University for Nationalities,Tongliao 028043,China)
出处 《内蒙古民族大学学报(自然科学版)》 2018年第6期489-492,共4页 Journal of Inner Mongolia Minzu University:Natural Sciences
基金 内蒙古高等学校科学研究项目(NJZC16191) 内蒙古自治区教育科学十三五教育规划2016年度课题(NGJGH2016019)
关键词 面向对象程序设计 基本原则 软件结构设计 Object-oriented programming Basic principles Software structure design
  • 相关文献

参考文献8

二级参考文献26

共引文献28

同被引文献24

引证文献2

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部