set06 - Relationships Among Classes Jan. 2000 - ENEL 409...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Jan. 2000 - ENEL 409 Dr. M. Moussavi 1 Relationships Among Classes
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Jan. 2000 - ENEL 409 Dr. M. Moussavi Relationship among classes Relationship among classes There are three major type of relationships among classes that most of O.O. programming languages support them: Association Aggregation/Composition Inheritance
Background image of page 2
Jan. 2000 - ENEL 409 Dr. M. Moussavi 3 Association Association The association relationship expresses a bi- directional semantic connection between classes: There is no hierarchy. The relationship is between equals. Association is a relationship where two classes are weakly connected; i.e. they are merely “associates.”
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Jan. 2000 - ENEL 409 Dr. M. Moussavi 4 Class Relationship - Class Relationship - association association Course Manager Course Association manages
Background image of page 4
Dr. M. Moussavi 5 Association (continued) Association (continued) The association of two classes must be labeled. To improve the readability of diagrams,
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/10/2011 for the course ENEL 409 taught by Professor Moussavi during the Fall '11 term at University of Calgary.

Page1 / 17

set06 - Relationships Among Classes Jan. 2000 - ENEL 409...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online