Topic 5 - UML Flashcards

1
Q

What does UML stand for?

A

• Unified Modeling Language

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

What is UML used for?

A
  • Used to model object-oriented designs
  • Show class specifications
  • Shows how classes interact with each other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is UML language independent?

A

Yes, it is language independent

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

How is a class represented in UML?

A

A rectangle divided into 3 sections:
Name of class.
Attributes of class.
Methods of class.

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

What characters do you use to signify visibility for attributes and methods?

A

Public: +
Protected: #
Private: -

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

Implementation of an interface?

A

Broken line with open arrow

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

How is an interface represented in UML?

A

Rectangle with 2 sections:
Name of interface
Methods

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

Inheritance (generalization) is represented as?

A

A solid line with open arrow head.

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

Usage of another class (association)

A

Broken line with normal arrow head

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