Object Oriented Analysis and Design Using The UML: Nabgha Hashmi Faculty of Computer Science University of Gujrat
Object Oriented Analysis and Design Using The UML: Nabgha Hashmi Faculty of Computer Science University of Gujrat
Object Oriented Analysis and Design Using The UML: Nabgha Hashmi Faculty of Computer Science University of Gujrat
Nabgha Hashmi
Faculty of Computer Science
University of Gujrat
Association Name
Association
Role Names
Class University
Professor
Employee Employer
Student Schedule
Aggregation
Student Schedule
Aggregation
Do not get too confuse if you are unable to decide whether a particular
whole-part relationship is best described as an aggregation or
composition because the distinction is helpful, it is not critical.
ClientPackage SupplierPackage
Dependency
relationship
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 15
3. Generalization
Account
balance
name
Superclass number
(parent) Withdraw()
CreateStatement()
Generalization
Relationship
Checking Savings
Descendents
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 18
Example: Multiple Inheritance
A class can inherit from several other
classes
FlyingThing Animal
multiple
inheritance
Rational Rose
http://www-3.ibm.com/software/awdtools/developer/rosexde/
Together
http://www.borland.com/together/
http://argouml.tigris.org
Visio
http://msdn.microsoft.com/office/understanding/visio/
Dia
http://www.lysator.liu.se/~alla/dia