Class Diagrams Flashcards Preview

Information Management > Class Diagrams > Flashcards

Flashcards in Class Diagrams Deck (20)
Loading flashcards...
1

purpose of a class diagram

describe the static structure of a system in a visual form

2

do class diagrams show the fucntional requirements of a system

no
use case models do this

3

do class diagrams show how classes interact at run time

no
interaction diagrams used for this

4

3 parts of a class symbol in order

1. class name
2. attributes
3. operations

5

what does it mean if an object is persistant

stored, once the program is done, there is still a record of this object

6

what does it mean if an object is transistory

only in existence while the program is running

7

what is an attribute of a class

a property that describes a range of values that theobjects of that class may hold

8

how would you show an attribute's visibility in the class diagram

+ public
- private

eg + attributeName

9

how would you show an attribute's type in the class diagram

:

eg. attributeName: int

10

how would you show an attribute's multiplicity in the class diagram

[0...1]

eg attributeName [0..1]: String

11

how would you show an attribute that has an initial value in the class diagram

=

eg attributeName : int = 5

12

what are derived attributes

attributes who's value is a result of a computation based on other attribute values

13

how to represent derived attributes in class diagrams

/aatributeName

14

where are operations (methods) of a class listed

just below attributes

15

how to show association between two classes

draw a line and add association name

16

how to show cardinality in associations

1.n means one or more
0.n means 0 or more

17

what is generalisation in class diagrams equivalent to in java

inheritence

18

example of generalisation

student in main class
undergrad and post grad are sub classes

19

what is aggregation

when one class is made up of those of another but both can exist in their own right also

20

what is composition

when one class is made of of another but it cannot exist in it's own right