1 / 10

Object Oriented Programming

Object Oriented Programming. Lecture 10: UML & CRC. To Do. Read Chapter 3 Think about the questions. Notations. CRC cards Unified Modelling Language (UML) Booch, Grady and Rumbaugh Class Diagrams Sequence Diagrams Object Diagrams. CRC Card.

justinl
Download Presentation

Object Oriented Programming

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. Object Oriented Programming Lecture 10: UML & CRC

  2. To Do • Read Chapter 3 • Think about the questions

  3. Notations • CRC cards • Unified Modelling Language (UML) • Booch, Grady and Rumbaugh • Class Diagrams • Sequence Diagrams • Object Diagrams

  4. CRC Card • Class, Responsibility and Collaboration Cards • Ward Cunningham and Kent Beck (Tectronix) • 4 by 6 inch index cards (small) Class Name Responsibilities / Secrets Collaborations

  5. Class Diagrams • Boxes represent classes • Name of class • Attributes – or data held in the class • Operations – or methods provided by the class • Lines represent associations between classes • Arrows on the lines represent navigability • Numbers on the lines represent multiplicity • Open arrow heads show generalisation or viewed the other way inheritance

  6. Class Diagram Name Attributes (Data) Operations (Methods) Name Attributes (Data) Operations (Methods) 1 * Name Attributes (Data) Operations (Methods) Name Attributes (Data) Operations (Methods)

  7. ballWorld ball one ball two paint(Graphics) paint(Graphics) paint(Graphics)

  8. : BallWorld colour: green ballone : Ball colour: red balltwo : Ball colour: green

  9. : BallWorld colour: green ballone : Ball colour: red balltwo : Ball colour: green exitbutton caption: Exit

  10. Practicals for week 3 • Chapter 6 questions 1-14 • Exercises 1-4, 6 • To be verified are exercises 1-4 as a single program and 6 as a second program

More Related