- 4
- 0
- 约2.04万字
- 约 35页
- 2016-11-24 发布于浙江
- 举报
* UML Lecture_01, Author: NK Jiang */34 A Java Example of the Interface/Implementation Paradigm Calculate a Square public class IntSquare { // private attribute private int squareValue; // public interface public int getSquare (int value) { SquareValue =calSquare(value); return squareValue; } // private implementation private int calSquare (int value) { return value*value; } } * UML Lecture_01, Author: NK Jiang */34 OO: Thinking more abstractly Giving the user the minimal interface possible For example, Appliance – power supplier – socket(插座) automobile - main concern when driving a car is that the car starts, accelerates, stops, steers etc. If, however, a manufacturer decided to install a joystick in place of the steering wheel … For using car, the engine is part of the implementation, and the steering wheel is part of the interface * UML Lecture_01, Author: NK Jiang */34 Using Abstract Thinking when Designing Interfaces Difference between an abstract and a concrete interface For a taxi object Take me to the airport, or Turn right, then right, then left, then left, then left? Which is more reusable? Take me to the airport, : abstract interface is a good, reusable OO design * UML Lecture_01, Author: NK Jiang */34 Designing with Objects Generally, a solid OO design process will include the following steps Doing the proper analysis Developing a statement of work that describes the system Gathering the requirements from this statement of work Developing a prototype for the user interface Identifying the classes Determining the responsibilities of each class Determining how the various classes interact with each other Creating a high-level model that describes the system to be built * UML Lecture_01, Author: NK Jiang */34 Ref book: Object-Oriented Thought Process, The, Second Edition, By Matt?Weisfeld End * An object is a computer representation of an entity, either real-world or invented. An object can
您可能关注的文档
- UML_Lec01_a3_UML工具.ppt
- UML_Lec02_b1_UML引言.ppt
- UML_Lec03_类_关系.ppt
- UML_Lec04_公共机制_图.ppt
- UML_Lec05_用例_用例图.ppt
- 2026及未来5年中国汽车机油行业发展前景预测及投资战略研究报告.docx
- 2026及未来5年中国电磁铁行业市场发展监测及投资战略咨询报告.docx
- 2026及未来5年中国建筑工程机械行业市场发展监测及投资战略规划报告.docx
- 2026及未来5年中国硫化镍行业市场调研分析及投资战略规划报告.docx
- 2026及未来5年中国烷化剂市场运营态势及发展前景预测报告.docx
- 2026年及未来5年内中国液体氩气行业投资前景及策略咨询研究报告.docx
- 2026年及未来5年内中国黄铜合页行业投资前景及策略咨询研究报告.docx
- 2026年及未来5年内中国竹工艺家具行业投资前景及策略咨询研究报告.docx
- 2025年中国微机数显自动分析仪市场调查研究报告.docx
- 2026年及未来5年内中国微尘白色粉笔行业投资前景及策略咨询研究报告.docx
- 2025年中国微电脑型压胶机市场调查研究报告.docx
- 2026年及未来5年内中国数字化等功游泳训练测试系统行业投资前景及策略咨询研究报告.docx
- 2025年中国圆形花瓶市场调查研究报告.docx
- 2026年及未来5年内中国植物纤维静淀过滤器行业投资前景及策略咨询研究报告.docx
- 2025年中国超音波手套机市场调查研究报告.docx
最近下载
- 四川省2025年中考数学真题试卷十五套附答案.pdf VIP
- 《数据库原理与应用》课程标准.pdf VIP
- 本科论文毕设-基于JAVA酒店管理系统毕业设计论文.doc VIP
- 2025年德州职业技术学院单招笔试数学试题库含答案解析.docx VIP
- 氟化物微纳复合玻璃与透明陶瓷:设计原理、制备工艺与性能研究.docx VIP
- 2025海上风电系统智能运维的数字孪生技术(英文).pdf VIP
- 2025年德州职业技术学院单招《数学》真题(重点)附答案详解.docx VIP
- 牵引供电变电所-分区所-AT所.pdf VIP
- 投标产品质量、供货、售后服务、残次品退换承诺方案.docx VIP
- 子宫肌瘤的诊治中国专家共识解读.docx VIP
原创力文档

文档评论(0)