class diagrams Flashcards

1
Q

unified modelling language

A

diagrams for designing systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

dynamic uml

A

embraces the executable behaviour of a system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

static uml

A

structural aspects of the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are 3 reasons for why we use uml

A

frequently used in the industry
easier to fit more information in less space compared to code
fast to create and reason about

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

+

A

public

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

-

A

private or protected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are the 3 class diagrams perspectives

A

conceptual; identify the classes
specification; basic set of data and operations
implementation; what kind of code youll need

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

1

A

exactly 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

0..1

A

0/1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

*

A

many

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

0..*

A

0/many

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

1..*

A

at least one/many

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

association

A

shows that two classes need to pass data between eachother

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

how is association represented

A

a straight line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

aggregation and how is it represented

A

the parent and child can exist independently
line with a hollow diamond

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is composition and how is it represented

A

the child cannot exist without the parent
line with filled in diamond

17
Q

generalisation/inheritance

A

when a child class inherits attributes and methods from a parent class

18
Q

abstract class

A

defined methods and attributes without implementing them
can have a mix of abstract and concrete methods

19
Q

concrete class

A

provides the implementation for an abstract class

20
Q

realisation/implements

A

implementing interface classes
a class can implement multiple interfaces (have multiple behaviours) and must match method signatures of all interfaces that its implementing

21
Q

polymorphism

A

allows the same method to be used differently depending on the object its acting on