Vous êtes sur la page 1sur 25

Object Oriented Analysis and Design Using UML

Course description:
OBJECTIVE: The understand the Unified Modeling Language and orient towards Object Oriented methodology using UML for modeling software systems. TARGET AUDIENCE: In particular, it is intended for software professionals who have sound knowledge of object concepts and some experience towards analysis and design. PREREQUISITES: Good understanding of object concepts. Sound knowledge of any object oriented language. Knowledge of software engineering process.

Class Modeling : Introduction

A class model captures static structure of a system by - characterizing the objects in the system, - relationships between the objects - attributes - operations Purpose: To describe objects

1. Objects
An Object is a concept, abstraction, or thing with identity that has meaning for an application Some objects has : Real-word Counterpart (Ex., Employee & Company) Some objects are : Conceptual entities (Ex., Solving Equation) All objects have identity and are distinguishable Identity means objects are distinguished by their inherent existence and not by descriptive properties that they may have.

2. Classes
An Object is an instance of a class. A Class describes a group of objects with the same - properties (Attribute) - behavior (Operations) - Kinds of Relationship - Semantics Ex., Person Company Process Each Object knows its class (implicit property)

2. Classes
Abstract a problem, by grouping objects into classes Abstraction gives modeling its power and ability to generalize from a few specific cases to a host of similar cases. Per class: classname and attribute name

What is Class diagram?

A class diagram shows the existence of classes and their relationships Class diagram provide a graphic notation for modeling classes and their relationships, thereby describing possible objects

Object diagram
Object Diagram: - shows individual objects & their relationship - helpful for documenting test cases Class diagram corresponds to an infinite set of object diagrams

Values & Attributes

Value - a piece of data

Values & Attributes


Operations and Methods

Operation: is a function or procedure that may be applied to or by objects in a class. Company : hire Pay payDividend Window Each operation has a target object. The same operation may apply to many different classes, concept ???


Operations and Methods

Method: is the implementation of an operation for a class Class named, File : Print (Operation) : ASCII File Binary File Digitized picture


Operations and Methods

Operation may have arguments.

direction argumentName : type = defaultValue

Where, direction : in / out / inout


Operations and Methods



Order : Objects on many association end can have order


Bag & Sequence

Bag : Collection of elements with duplicate allows Sequence : An ordered collection of elements with duplicate allows


Association Class


Association Class


Association Class


Association Class


Association Class


Qualified Association
QA is an association in which an attribute called qualifier disambiguates the objects for a many association ends.


Generalization & Inheritance


Generalization & Inheritance


Generalization & Inheritance