The key concept of object orientation is the attachment of procedure to data
我认为这句话是正确的
可是有的书上述这是错的,但又没具体解释
大家觉得呢?

解决方案 »

  1.   

    面对对象的核心是面向过程的一部分?》
    明显是错的Which is incorrect about the OOP?(下面关于面向对象技术的叙述哪个是错误的?)[金山公司2005年面试题]A.The central idea of OOP is to build programs using software objects.B.The OOP focuses mainly on the step-by-step procedure as procedure-
    oriented programing.C.The OOP offers many advantages: simplicity,modularity,modifiability,
    extensibility, and so on.D.The key concept of object orientation is the attachment of procedure 
    to data.答案:B,D
      

  2.   

    在面向过程的语言中 data和procedure是分开的而OO则是对象 数据和相关的处理封装到一个类里,一个类里既包含数据,也包括操作(过程),所以Procedure和data是attahced!貌似应该是对的啊