9. UML and Class Diagrams Flashcards
1
Q
UML
A
Unified modelling language
2
Q
What is a class and what are the key components of a class?
A
A class is used to create objects in programming and outlines what data the objects can hold. It has attributes (A Car class might have attributes like colour, brand and speed) and methods (A Car class might have methods like startEngine() or accelerate())
3
Q
UML syntax
A
How we follow the rules for drawing diagrams (lines, boxes, labels)
4
Q
UML semantics
A
What the things we draw actually mean in the system, how the system works and what role each part plays
5
Q
Elements of a class
A
Class name, class attributes (properties), class methods (behaviours)