摘要
C语言编写软件大部分采用面向过程的方式开发,代码复杂,耦合性强,且难以维护。为了解决此问题,对C语言以及面向对象程序设计的思想进行深入的研究,通过合理地运用类、组合、封装和多态机制,将C语言与面向对象程序设计的思想相结合,最终实现C语言的面向对象编程。该编程思想既保留了C语言特有的优势,又拥有面向对象程序设计的特性,使程序更加高效、易维护。
Abstraet:C language was generally developed for researching system software by orienting procedure, significant challenges in terms of complex code, strong coupling, and difficult maintenance still remain. In order to solve these problems, the ideas of C and object-oriented programming are combined in this paper. The class, composition, encapsulation and polymorphism mechanism are used to realize the object-oriented programming in C language. From this set, not only can one retain the unique advantages of C, but also one can enable to write more efficient application, as well as robust and good maintenance. Key words:C language; object-oriented; program design
出处
《咸阳师范学院学报》
2015年第6期61-64,共4页
Journal of Xianyang Normal University
关键词
C语言
面向对象
程序设计
C language
object-oriented
program design