Topic 5 - UML Flashcards
1
Q
What does UML stand for?
A
• Unified Modeling Language
2
Q
What is UML used for?
A
- Used to model object-oriented designs
- Show class specifications
- Shows how classes interact with each other
3
Q
Is UML language independent?
A
Yes, it is language independent
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.
5
Q
What characters do you use to signify visibility for attributes and methods?
A
Public: +
Protected: #
Private: -
6
Q
Implementation of an interface?
A
Broken line with open arrow
7
Q
How is an interface represented in UML?
A
Rectangle with 2 sections:
Name of interface
Methods
8
Q
Inheritance (generalization) is represented as?
A
A solid line with open arrow head.
9
Q
Usage of another class (association)
A
Broken line with normal arrow head