





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Concepts like action state, acctivity diagram, class diagram, constructiing and object, generalization, interaction diagram, software degin, state diagram use case diagram are main topics. Implemtentation are done using Unified Modelling Languae. This lecture includes: Generalization, Relationships, Supertype, Customer, Association, Multiplicity, Roles, Diagram, Class
Typology: Slides
1 / 9
This page cannot be seen from the preview
Don't miss anything!






OO Relationships: Generalization
Regular Customer
Loyalty Customer
Example: Customer
Student enrolls in a course Courses have students Courses have exams Etc.
Role names (e.g. enrolls) Multiplicity (e.g. One course can have many students) Navigability (unidirectional, bidirectional)
OO Relationships: Association
[from UML Distilled Third Edition ] docsity.com
Association: Model to Implementation
OO Relationships: Aggregation
Class C
Class E 1 Class E 2
AGGREGATION
Container Class
Containee Classes
Bag
Apples Milk
Example
Aggregation: expresses a relationship among instances of related classes. It is a specific kind of Container- Containee relationship.
express a more informal relationship than composition expresses.
Aggregation is appropriate when Container and Containees have no special access privileges to each other.
[From Dr.David A. Workman] docsity.com
Aggregation vs. Composition
Composition is really a strong form of association components have only one owner components cannot exist independent of their owner components live or die with their owner e.g. Each car has an engine that can not be shared with other cars.
Aggregations may form "part of" the association, but may not be essential to it. They may also exist independent of the aggregate. e.g. Apples may exist independent of the bag.