Object Oriented Software Development
Object Oriented Software Development Naufal F. Setiawan School of - - PowerPoint PPT Presentation
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
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
Object Oriented Software Development
UML Diagrams
Here is how a single UML class looks like:
Object Oriented Software Development
UML Diagrams
Which symbols are used to denote different privacy levels of class members in in UML? Answer
Object Oriented Software Development
UML Diagrams
How do we represent association in a UML diagram?
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;
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 Songs are stored.
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”.
Object Oriented Software Development
UML Diagrams
What’s the difference between Aggregation and Composition?
Object Oriented Software Development
UML Diagrams
These three UML diagram refer to the same code: src/Meme.java @Nullable Image image;
Object Oriented Software Development
UML Diagrams
How do we represent that a class is abstract?
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.
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.
Object Oriented Software Development
UML Diagrams
How do we represent inheritance in UML?
Object Oriented Software Development
UML Diagrams
How do we represent inheritance in UML?
Object Oriented Software Development