物件關係實習
1
實習單元:
分析物件間的關係
©2015 Software Engineering Consortium
請回答下列物件間的關係
 Car  Engine ?
 Car  Baggage ?
 Driver  Car ?
 Driver  Baggage ?
 Person  Cell Phone ?
 Human  Brain ?
 Fighter  Bomb ?
 Fighter  F16
 Bomb  Nuclear Bomb (核子彈)
 Tree Node  Child of Tree Node ?
 Tree Node  Parent of Tree Node ?
 Hero  Life ? (Game)
 Hero  Score ? (Game)
 Hero  Map ? (Game) 2
©2015 Software Engineering Consortium
物件關係參考解答
 Car  Engine ?
 Car  Baggage ?
 Driver  Car ?
 Driver  Baggage ?
 Person  Cell Phone ?
 Human  Brain ?
 Fighter  Bomb ?
 Fighter  F16
 Bomb  Nuclear Bomb
 Tree Node  Child of Tree Node ?
 Tree Node  Parent of Tree Node ?
 Hero  Life ? (Game)
 Hero  Score ? (Game)
 Hero  Map ? (Game)
 Composition
 Dependency
 Association/Dependency
 Association/Dependency
 Association/Dependency
 Composition
 Association
 Inheritance
 Inheritance
 Composition
 Association (if needed)
 Composition/Attribute
 Association/Dependency
 Dependency 3
註:僅供參考,
沒有一定的答案

物件關係實習

  • 1.
  • 2.
    ©2015 Software EngineeringConsortium 請回答下列物件間的關係  Car  Engine ?  Car  Baggage ?  Driver  Car ?  Driver  Baggage ?  Person  Cell Phone ?  Human  Brain ?  Fighter  Bomb ?  Fighter  F16  Bomb  Nuclear Bomb (核子彈)  Tree Node  Child of Tree Node ?  Tree Node  Parent of Tree Node ?  Hero  Life ? (Game)  Hero  Score ? (Game)  Hero  Map ? (Game) 2
  • 3.
    ©2015 Software EngineeringConsortium 物件關係參考解答  Car  Engine ?  Car  Baggage ?  Driver  Car ?  Driver  Baggage ?  Person  Cell Phone ?  Human  Brain ?  Fighter  Bomb ?  Fighter  F16  Bomb  Nuclear Bomb  Tree Node  Child of Tree Node ?  Tree Node  Parent of Tree Node ?  Hero  Life ? (Game)  Hero  Score ? (Game)  Hero  Map ? (Game)  Composition  Dependency  Association/Dependency  Association/Dependency  Association/Dependency  Composition  Association  Inheritance  Inheritance  Composition  Association (if needed)  Composition/Attribute  Association/Dependency  Dependency 3 註:僅供參考, 沒有一定的答案