- 1、本文档共20页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
? 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 1 Intro to OOP w/Java--Wu 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 第10章 高 程 系 统 Every object from the same class will have the same set of data values. The values themselves for individual objects would be different, of course. We assume here that the minimum balance is the same for all accounts. If this is the case, then the single value for minimum balance is shared by all Account objects. So we need to keep one value of the minimum balance that will be shared by all Account objects. Likewise, there’s exactly one value for the average balance so it is appropriate as a class data value. Although only one instance data value is shown here, it does not mean these objects contain only one data value. Most likely the real Account objects would include about a dozen or so instance data values. We only show a single instance data value here so the diagram would not become cluttered. Three objects having different dollar amounts does not mean they have to be different. All three objects could conceivably have the same dollar amount. The key point here is that they can differ (and most likely will in the real world). To see the significance of a class data value, consider the situation where the minimum balance is represented as an instance data value. Each of the three Account objects will have its own copy of minimum balance. Since there’s a single value for the minimum balance, these copies are redundant duplicates that waste memory space. More importantly, keeping duplicates in memory will complicate the processing. When we have to change the value for the minimum balance, for example, we have to locate all copies and update them. Imagine updating the duplicat
您可能关注的文档
- 2016-2017学年高中物理第七章分子动理论1物体是由大量分子组成的课件.ppt
- 2016高考物理总复习-专题5-应用动力学和能量观点处理多过程问题课件.ppt
- 2016届《创新设计》高考物理大一轮复习精讲课件:第四章-曲线运动-万有引力-6-小专题天体运动中的.ppt
- 2017-2018学年高中数学第四章圆与方程4.3.1空间直角坐标系4.3.2空间两点间的距离公式课件.ppt
- 2017高考地理一轮复习第3讲地球的宇宙环境.pptx
- 2017届3-3热学第二轮专题复习.ppt
- 2017届高考物理二轮专题突破专题十鸭部分1热学课件.ppt
- 2017届高三物理一轮复习第十一章热学2固体液体与气体课件.ppt
- 2017年高考物理一轮复习-第5章-机械能-能力课时7-应用动力学观点和能量观点-突破多过程综合问题课件.ppt
- 2017年中考物理光学作图专题.pptx
最近下载
- 肾盂旁囊肿的研究的现状及进展.doc VIP
- 3.1《中国科学技术史序言(节选)》课件-中职高二语文(高教版2024拓展模块上册).pptx
- PCB多层压合工艺PPT课件.ppt
- 第一单元第二节+体验“云上生活”++课件 2024—2025学年川教版(2024)信息科技+七年级上册.pptx VIP
- Garmin佳明Forerunner 165 智能GPS跑步腕表说明书用户手册.pdf
- 工程项目工期关键节点和线路保证措施(模板)18.docx VIP
- 泰康入职测评考试题库答案.pdf
- Ai围棋定式大全(重排彩图).pdf
- 汽车钣喷系列教学课件--钣金件焊接工艺.ppt
- 人力资源有限公司管理制度.docx VIP
文档评论(0)