注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

浩瀚星云

上善若水 厚德载物<学习版>

 
 
 

日志

 
 

Object-oriented software   

2007-11-04 22:41:32|  分类: 计算机专业英语 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

        今天晚上感觉好累啊,晚上去自习室上自习不一会就睡着了,真是搞笑。呵呵,为期中考试准备了一篇文章:

             Object-oriented software is all about objecs .An object is a "black box" which receives and sends messages .A black box actually contains code (sequences of computer instructions)and data (information which the instructions operates on). Traditionally,code and data have been kept apart . For example,in the C language ,units of code are called functions , which units of data called structures . Function and structures are not formally connected in C.A C function can operate on more than one type of structure , and more than one function can operate on the same structure.

             Not so for object-oriented software! In o-o (object-oriented)programming ,code and data are merged into a single indivisible thing-an object . The has some big advantages ,as you'll see in a moment . But first,here is why SDC developed the "black box"metaphor for an object . A primary rule of object-oriented programming is this :as the user of an object , you should never need to peek inside the box!

  评论这张
 
阅读(104)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017