1 / 18

CH06: Considering Objects

CH06: Considering Objects. Set, Class, Type …of… Objects, Actors, Agents Data and Actions Object-Oriented Design and Development Intro to UML (Unified modeling Language) Diagrams. TECH Computer Science. CH01. Class vs. Object. A class is a collection, a group, a set, or a type of …

blackmona
Download Presentation

CH06: Considering Objects

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CH06: Considering Objects • Set, Class, Type • …of… • Objects, Actors, Agents • Data and Actions • Object-Oriented Design and Development • Intro to UML (Unified modeling Language) • Diagrams TECH Computer Science 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. Employee Address -lastName : String … Association relation between classes • Public Class Employee • { • public String lastName; • … • public Address homeAddress; • … • } • Public class Address { … } -homeAddress

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

  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

More Related