Software design - Lecture 17. The main topics covered in this chapter include: relationships between classes; represent cardinality of the class in relationship to another class; bi-directional association example; association - multiplicity; uni-directional association;...
1 Software Design Lecture : 17 Relationships between Classes Ø Association Ø Aggregation Ø Composition Ø Inheritance Association Ø It represents a linkage between two classes Ø Associations are bidirectional ie both classes are involved in a relationship Ø The line is drawn from the containing to the Association Example Multiplicity Ø Identify how many instance of a class can be initiated against other class Ø Represent cardinality of the class in relationship to another class 6 Example BiDirectional Association Example Association Multiplicity Multiplicity 10 UniDirectional Association 11 Comprehensive Example 12 Task to Do: Write Requirements