Professional Documents
Culture Documents
06 Thinking in Objects
06 Thinking in Objects
-name: String
-regId: String
UML representation -GPA: double
-major: String
+Student(name:String, regId:String)
+getName(): String
+getRegId(): String
+getGPA(): double
+setGPA(GPA:double): void
+getMajor(): String
+setMajor(major:String): void
Student Sport
0 .. * 0 .. *
… …
0..* on the left means a Student object can be associated with zero or more Sport objects
0..* on the right means a Sport object can be associated with zero or more Student objects
Meeting Employee
0 .. * 0 .. *
… …
0..* on the left means a Meeting object can have zero or more Employee objects
0..* on the right means an Employee object can be had by zero or more Meeting objects
House Room
1 .. *
… …
1..* on the right means a House object has one Room or more objects