Presentation is loading. Please wait.

Presentation is loading. Please wait.

CH06: Considering Objects TECH Computer Science  Set, Class, Type  …of…  Objects, Actors, Agents  Data and Actions Object-Oriented Design and Development.

Similar presentations


Presentation on theme: "CH06: Considering Objects TECH Computer Science  Set, Class, Type  …of…  Objects, Actors, Agents  Data and Actions Object-Oriented Design and Development."— Presentation transcript:

1 CH06: Considering Objects TECH Computer Science  Set, Class, Type  …of…  Objects, Actors, Agents  Data and Actions Object-Oriented Design and Development Intro to UML (Unified modeling Language)  Diagrams CH01

2 Class vs. Object A class is a collection, a group, a set, or a type of … e.g.  People  Student An object is an instance or an individual of a class e.g.  People Tom  Student Marry

3 Class and its UML Box Data  State, attributes Behavior  Action, transformation, operation  Triggered by receipt of particular message, or entrance into a particular state

4 Relations between Classes Subclass e.g.  People  Student Hierarchy Inheritance (is-a)

5 Association relation between classes Public Class Employee { public String lastName; … public Address homeAddress; … } Public class Address { … } Employee -lastName : String … Address -homeAddress

6 Association relation between classes (bidirectional) Public Class Team { LinkedList members = new LisnkedList(); … } Public class member { Team memberOf; … } Team Member

7 Composition and Aggregation

8 Dependency A dependency exists between the two if a class uses another class in some fashion

9 Using Class Diagram to show a design

10 More UML diagrams

11 Use case diagram

12 Activity Diagram

13 State Diagram

14 Sequence Diagram

15 Collaboration Diagram

16 Package Diagram

17 OO Design Identify classes  A set of objects sharing a common structure and common behaviors  Looking for Things (nouns)  Structures  External systems  Devices  Roles  Operating procedures  Places  Organizations  Things that are manipulated by the system to be builds  Behaviors  Verbs

18 OO Measurement: Metric


Download ppt "CH06: Considering Objects TECH Computer Science  Set, Class, Type  …of…  Objects, Actors, Agents  Data and Actions Object-Oriented Design and Development."

Similar presentations


Ads by Google