摘要
面向对象程序设计是一种围绕真实世界的概念来组织模型的程序设计方法 ,对象是包含现实世界物体特征的抽象实体。在计算机科学中 ,程序操作的任何成分都可以看作一个对象 ,一个类所有的对象都有相同的数据结构 ,并且共享相同的操作代码 ,所以说类是所有对象共同的行为和不同状态的集合体。本文通过对电视机类的定义阐述了电视机的基本功能及工作原理 ,来说明类是创建对象的模块 ,一个类所有的对象都有相同的数据结构的概念。
Object oriented programming is a kind of programming design method centering on organizing modes based on the concept of real world. Object is meant abstract o bjects characterized by objects of the real world in computer science and any co mponent of programming operation might be regarded as object. The object in a c lass must have the same data structure and share the common operating code, i.e . classes are the common behaviors of the objects and sets at different states . Through specifications for TV sets, the basic TV function and working mechani sm are clarified, so a class means object modes created, a class in the object has the concept of the same data structure.
出处
《现代电子技术》
2004年第24期98-99,共2页
Modern Electronics Technique