Artifacts Involved in Design Phase
page 6 of 8
by Uday Denduluri
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 35462/ 81

Relationships among the classes

Showing the relationships among the classes is the most important aspect of the Class diagram. To show the design pattern we need to show the classes with their relationships. Let us understand different types of relationships.

·         Association – Association is the simple relation between two classes. In most of the cases it is the users relationship. Class A uses Class B. Therefore, Class B is associated with Class A.

·         Generalization – Generalization is the Base class and child class relationship.

·         Aggregation – Aggregation is the whole and part relationship. Class A forms the part of Class B.

·         Composition – Composition is a special type of Aggregation where the life time of the part is controlled by the Whole.

Figure 5 shows the Prototype design pattern showing the relationships between the client, Prototype and the ConcretePrototype class.

Figure 5

·         Prototype – Declares the base interface for cloning itself(Base class).

·         ConcretePrototype – Implements the declared interface for cloning (Implements the base class). The relationship shown with the base class is Generalization.

·         Client – Creates the new object by asking a prototype to clone itself. Hence, the relationship is a simple Association.


View Entire Article

User Comments

Title: Mr.   
Name: PeterB
Date: 2007-06-12 10:39:37 AM
Comment:
If Integrated Design Document deal with a module and it's interaction with other modules within the project or system,

Which document will provide the complete
Resources:


http://envstudies.brown.edu/thesis/2004/Molly_Macgregor/How_When/Integrated_Design.htm

Many More

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-24 9:48:13 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search