Professional Documents
Culture Documents
Lab 3-Class Diagram
Lab 3-Class Diagram
Lab 3-Class Diagram
Class Diagram
5. Constraint
2. Attribute
Rules & Note
4.
3. Operation
Relationship
- You must have a name, but all other parts are optional.
Person
+name : String
address : String
birthdate : Date
ssn : int
+display(ssn:Integer):String{readOnly}
Create()
modify()
delete()
- Association
- Generalization
- Dependency
Student Instructor
Student Instructor
1..*
Multiplicity Indicators
Exactly one 1
Zero or more (unlimited) * (0..*)
One or more 1..*
Zero or one (optional association) 0..1
Specified range 2..4
learn from
Student Instructor
teach
owns *
Person Car
Course
Engine
Car
Door
Book Page
Square
Customer 1 * may be
Order
canceled
id: long { value > 0 }
Constraint Note