资源描述:
《最新Object-Oriented Systems Analysis and Design Using UML教学讲义ppt.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Object-OrientedSystemsAnalysisandDesignUsingUMLLearningObjectivesUnderstandwhatobject-orientedsystemsanalysisanddesignisandappreciateitsusefulness.Comprehendtheconceptsofunifiedmodelinglanguage(UML),thestandardapproachformodelingasystemintheobject-orientedwo
2、rld.ApplythestepsusedinUMLtobreakdownthesystemintoausecasemodelandthenaclassmodel.DiagramsystemswiththeUMLtoolsetsotheycanbedescribedandproperlydesigned.Documentandcommunicatethenewlymodeledobject-orientedsystemtousersandotheranalysts.Kendall&KendallCopyrigh
3、t©2011PearsonEducation,Inc.PublishingasPrenticeHall2Object-OrientedAnalysisandDesignWorkswellinsituationswherecomplicatedsystemsareundergoingcontinuousmaintenance,adaptation,anddesignObjects,classesarereusableTheUnifiedModelingLanguage(UML)isanindustrystanda
4、rdformodelingobject-orientedsystems.Kendall&KendallCopyright©2011PearsonEducation,Inc.PublishingasPrenticeHall3ObjectsPersons,places,orthingsthatarerelevanttothesystembeinganalyzedMaybecustomers,items,orders,andsoonMaybeGUIdisplaysortextareasonadisplayKendal
5、l&KendallCopyright©2011PearsonEducation,Inc.PublishingasPrenticeHall7ClassesDefinesthesetofsharedattributesandbehaviorsfoundineachobjectintheclassShouldhaveanamethatdifferentiatesitfromallotherclassesInstantiateiswhenanobjectiscreatedfromaclass.Anattributede
6、scribessomepropertythatispossessedbyallobjectsoftheclass.Amethodisanactionthatcanberequestedfromanyobjectoftheclass.Kendall&KendallCopyright©2011PearsonEducation,Inc.PublishingasPrenticeHall8AnExampleofaUMLClass:AClassIsDepictedasaRectangleConsistingoftheCla
7、ssName,Attributes,andMethods(Figure10.1)Kendall&KendallCopyright©2011PearsonEducation,Inc.PublishingasPrenticeHall9InheritanceWhenaderivedclassinheritsalltheattributesandbehaviorsofthebaseclassReducesprogramminglaborbyusingcommonobjectseasilyAfeatureonlyfoun
8、dinobject-orientedsystemsKendall&KendallCopyright©2011PearsonEducation,Inc.PublishingasPrenticeHall10AClassDiagramShowingInheritance(Figure10.2)Carandtruckarespecificexamplesofvehiclesandinherit