object oriented software development
play

Object Oriented Software Development Naufal F. Setiawan School of - PowerPoint PPT Presentation

Object Oriented Software Development Object Oriented Software Development Naufal F. Setiawan School of Computing and Information Systems University of Melbourne Workshop 7 Object Oriented Software Development UML Diagrams What is a UML Class


  1. Object Oriented Software Development Object Oriented Software Development Naufal F. Setiawan School of Computing and Information Systems University of Melbourne Workshop 7

  2. Object Oriented Software Development UML Diagrams What is a UML Class Diagram and why do we use them? What information do they deliver to their readers? Answer

  3. Object Oriented Software Development UML Diagrams Here is how a single UML class looks like:

  4. Object Oriented Software Development UML Diagrams Which symbols are used to denote different privacy levels of class members in in UML? Answer

  5. Object Oriented Software Development UML Diagrams How do we represent association in a UML diagram?

  6. Object Oriented Software Development UML Diagrams How do we represent association in a UML diagram? src/Artist.java Song song; // or alternatively Song[] songs; // or alternatively ArrayList<Song> songs;

  7. Object Oriented Software Development UML Diagrams To further disambiguate the relationship... we should specify the multiplicity ! Here, we do not care about how the multiple Song s are stored.

  8. Object Oriented Software Development UML Diagrams Subtypes of Associations: Aggregations (top) and Composition (bottom). Unlike standard associations, these read (towards the arrowhead) as “belongs to” rather than “has”.

  9. Object Oriented Software Development UML Diagrams What’s the difference between Aggregation and Composition?

  10. Object Oriented Software Development UML Diagrams These three UML diagram refer to the same code: src/Meme.java @Nullable Image image;

  11. Object Oriented Software Development UML Diagrams How do we represent that a class is abstract ?

  12. Object Oriented Software Development UML Diagrams How do we represent that a class is abstract ? Two ways: Note: when submitting Project 2A , please use the italicized method. The other one was meant to accomodate for exams as writing italic is hard .

  13. Object Oriented Software Development UML Diagrams How do we represent that a class is abstract ? Two ways: Note: when submitting Project 2A , please use the italicized method. The other one was meant to accomodate for exams as writing italic is hard .

  14. Object Oriented Software Development UML Diagrams How do we represent inheritance in UML?

  15. Object Oriented Software Development UML Diagrams How do we represent inheritance in UML?

  16. Object Oriented Software Development UML Diagrams Realisation: the act of implementing an interface. How do we do that in a UML diagram?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend