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

object oriented software development
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Object Oriented Software Development

Object Oriented Software Development

Naufal F. Setiawan School of Computing and Information Systems University of Melbourne Workshop 7

slide-2
SLIDE 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

slide-3
SLIDE 3

Object Oriented Software Development

UML Diagrams

Here is how a single UML class looks like:

slide-4
SLIDE 4

Object Oriented Software Development

UML Diagrams

Which symbols are used to denote different privacy levels of class members in in UML? Answer

slide-5
SLIDE 5

Object Oriented Software Development

UML Diagrams

How do we represent association in a UML diagram?

slide-6
SLIDE 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;

slide-7
SLIDE 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 Songs are stored.

slide-8
SLIDE 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”.

slide-9
SLIDE 9

Object Oriented Software Development

UML Diagrams

What’s the difference between Aggregation and Composition?

slide-10
SLIDE 10

Object Oriented Software Development

UML Diagrams

These three UML diagram refer to the same code: src/Meme.java @Nullable Image image;

slide-11
SLIDE 11

Object Oriented Software Development

UML Diagrams

How do we represent that a class is abstract?

slide-12
SLIDE 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.

slide-13
SLIDE 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.

slide-14
SLIDE 14

Object Oriented Software Development

UML Diagrams

How do we represent inheritance in UML?

slide-15
SLIDE 15

Object Oriented Software Development

UML Diagrams

How do we represent inheritance in UML?

slide-16
SLIDE 16

Object Oriented Software Development

UML Diagrams

Realisation: the act of implementing an interface. How do we do that in a UML diagram?