




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Discussion
Whatisyourperceptionofobjecttechnology?
Whatdoyouperceiveasobjecttechnology’sstrengths?Itsweaknesses?
Whyareyoumakingtheshifttoobjecttechnology?
2015/3/6 3
WhatIsObjectTechnology?
Asetofprinciples( ion,encapsulation,polymorphism)guidingsoftwareconstruction,togetherwithlanguages,databases,andothertoolsthatsupportthoseprinciples.
–(ObjectTechnology–AManager’sGuide,Taylor,1997.)
2015/3/6 4
TheStrengthsofObjectTechnology
Reflectsasingleparadigm
Facilitatesarchitecturalandcodereuse
Reflectsrealworldmodelsmoreclosely
Encouragesstability
Isadaptivetochange
2015/3/6 5
DifferencesBetweenOOandStructuredDesignObject-orientation(OO)
Meldsthedataanddataflowprocesstogetherearlyinthelifecycle
Hasahighlevelofencapsulation
Promotesreuseofcodedifferently
Permitsmoresoftwareextensibility
2015/3/6 6
AFormalDefinitionofObject
Anobjecthasstate
Stateisaconditionorsituationduringthelifeofanobject,whichsatisfiessomecondition,performssomeactivity,orwaitsforsomeevent.
Thestateofanobjectnormallychangesovertime.
2015/3/6
Anobjecthasbehavior
Behaviordetermineshowanobjectactsandreacts.
Thevisiblebehaviorofanobjectismodeledbyasetofmessagesitcanrespondto(operationsthattheobjectcanperform).
2015/3/6 9
對(duì)象可唯一識(shí)別
即使對(duì)象有相同的特性,還是能識(shí)別每個(gè)不同的對(duì)象
Professor“JClark”teachesBiology
Professor“JClark”teachesBiology
2015/3/6 10
BasicPrinciplesofObjectOrientation
2015/3/6 11
WhatIs ion?
Theessentialcharacteristicsofanentitythatdistinguishesitfromallotherkindsofentities.
Definesaboundaryrelativetothe oftheviewer.
Isnotaconcretemanifestation,denotestheidealessenceofsomething.
2015/3/6 12
抽象示例
學(xué)生 教授
課程提供(9:00AM,周一,
周三,周五) 課程(例如,代數(shù)學(xué))
2015/3/6 13
WhatIsEncapsulation?
Hidesimplementationfrom s.
sdependoninterface.
ImprovesResiliency
2015/3/6 14
封裝(Encapsulation)
對(duì)客戶隱藏實(shí)現(xiàn)
客戶依賴于接口
提高了彈性
2015/3/6 15
WhatIsModularity?
Breaksupsomethingcomplexintomanageablepieces.
Helpspeopleunderstandcomplexsystems.
2015/3/6
模塊化示例
系統(tǒng)
課程 系統(tǒng)
課程 系統(tǒng)
學(xué)生管理系統(tǒng)
2015/3/6 17
WhatIsHierarchy?
Review(1)
Whatisanobject?
Whatisanattribute?Anoperation?
Whatarethefourprinciplesofobjectorientation?Describeeach.
WhatIs ion?
WhatIsEncapsulation?
WhatIsModularity?
WhatIsHierarchy?
2015/3/6 19
RepresentingObjectsintheUML
繼承(Inheritance)
使用已存在的定義做為基礎(chǔ)建立新定義的技術(shù)
桌子
家具
床
衣柜
椅子
椅子的實(shí)例
2015/3/6 22
多態(tài)(Polymorphism)
對(duì)于相同的消息,讓各個(gè)對(duì)象產(chǎn)生不同的行為
銷售 事務(wù)
雖不知道對(duì)象員工是做什么工作的,但只要對(duì)員工發(fā)出指令就行了
技術(shù)
2015/3/6 24
多態(tài)性示例
計(jì)算各員工工資的程序
不用多態(tài)性時(shí) 使用多態(tài)性時(shí)
if(員工對(duì)象=“銷售”){
payment=計(jì)算銷售人員工資();
}elseif(員工對(duì)象=“技術(shù)”){
payment=計(jì)算技術(shù)人員工資();
}elseif(員工對(duì)象=“事務(wù)”){
payment=計(jì)算事務(wù)人員工資();
}
payment=員工對(duì)象.工資計(jì)算();
工作分工一增加,程序就必須修改
即使工作分工增加,程序也不需要修改
2015/3/6 25
Discussion
Whatisanactivitydiagramandwhywouldyouuseone?
Whatisthedifferencebetweenanactivityandanaction?
Whatisapartition?
Whatarethedifferenttypesofin ctiondiagrams?
Whatisacombinedfragment?
Whataresomeexamplesofin ctionoperators?
2015/3/6 26
Discussion
Whatisgeneralization?Whatinheritance?
Whatispackage?Whyusepackages?
Definepolymorphism.Provideanexampleofpolymorphism.
2015/3/6 27
Assignments
Group,4-5 seach,oneteamleader(PM)
Prepareasoftwaresystem,
whosescaleis
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- GIS基礎(chǔ)知識(shí)課件
- 蔬菜特色美術(shù)課件
- 瓊臺(tái)師范學(xué)院《普通邏輯學(xué)》2023-2024學(xué)年第一學(xué)期期末試卷
- 昆明冶金高等專科學(xué)?!度宋镎Z言造型》2023-2024學(xué)年第二學(xué)期期末試卷
- 山東鋁業(yè)職業(yè)學(xué)院《建筑概論(B)》2023-2024學(xué)年第二學(xué)期期末試卷
- 寧波市惠貞書院九年級(jí)2025屆初三下學(xué)期學(xué)習(xí)能力診斷化學(xué)試題含解析
- 安徽省浮山中學(xué)2025屆高三下(5月)考試化學(xué)試題含解析
- 貴州職業(yè)技術(shù)學(xué)院《食品微生物檢測(cè)技術(shù)》2023-2024學(xué)年第二學(xué)期期末試卷
- 浙江省紹興市諸暨市2025年初三下學(xué)期聯(lián)考押題卷化學(xué)試題試卷含解析
- 長(zhǎng)治幼兒師范高等??茖W(xué)校《第二外語法語專業(yè)理論教學(xué)》2023-2024學(xué)年第二學(xué)期期末試卷
- 更換窗戶施工方案
- 2024年涉密人員考試試題庫保密基本知識(shí)試題及答案解析
- 院內(nèi)突發(fā)心跳呼吸驟停、昏迷、跌倒事件應(yīng)急預(yù)案及程序
- 北京聯(lián)合大學(xué)2021年招聘輔導(dǎo)員試題及答案
- 九年級(jí)語文上冊(cè) 第三單元 寄情山水名勝 11 醉翁亭記教案 新人教版
- 2024年拍賣師資格考試題庫大全(含答案)
- 【正版授權(quán)】 ISO 21940-11:2016/Amd 1:2022 EN Mechanical vibration - Rotor balancing - Part 11: Procedures and tolerances for rotors with rigid behaviour - Amendment 1
- DL-T-1798-2018換流變壓器交接及預(yù)防性試驗(yàn)規(guī)程
- 抖音火花合同電子版獲取教程
- 病毒性腦膜炎護(hù)理
- 高中名著導(dǎo)讀社團(tuán)課《紅與黑》 課件
評(píng)論
0/150
提交評(píng)論