About OOP: object-oriented programming.
It’s been more than three decades since OOP came into this world. And the software industry has changed a lot, too. Nowadays, software is common merchandise like toothpaste. And OOP has become the main frame of software developing. There are also many excellent OOP languages which provides full OOP features to developers. But software development remains in mess.
OOP is a software development method, is a design strategy. Programming in OOP supported language is not equal to programming in OOP. All the features of OOP including inheritance, interface, inner class, polymorphism, dynamic binding, abstraction, information hiding should be considered in design phase. Any language can be programmed in OOP way. Some OOP languages (Java, C++ or Python) are nothing more than supporting those features explicitly. The truth is that a good OOP designed software can easily be implemented with procedural language like C, only provided the design is OOP enough.
There are many excellent software which is implemented with C in OOP way. GTK+, for example, is fully OOP and written in C. And there is a excellent books about programming OOP with ANSI C called <OOP with ANSI C>. By now, you should be fully convinced that OOP has nothing to do with programming language.
OOP is a method, a conception and a mind level solution. We should enhance our comprehension about it. We should learn when and where to use those features to improve our solutions. It is such a thing if you can use it right, it is really powerful. Otherwise, it is really harmful and the software development process would be worse than without using OOP.
本文探讨了面向对象编程(OOP)的概念及其发展历程,并指出OOP不仅仅是一种编程语言特性,而更是一种设计思想。文章通过实例说明即便是像C这样的过程式语言也能实现OOP编程,并强调了正确使用OOP的重要性。
1020

被折叠的 条评论
为什么被折叠?



