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
University of Gujrat
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 1
Objectives: Introduction to Object Orientation
Object Orientation
Encapsulation
Abstraction
Modularity
Hierarchy
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 4
What is Abstraction?
Salesperson
Not saying Which
salesperson – just
a salesperson in
general!!!
Product
Customer
Manages Complexity
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 5
What is Encapsulation?
Hide implementation from clients
Clients depend on interface
Improves Resiliency
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 6
What is Modularity?
The breaking up of something complex into
manageable pieces
Order
Entry
Order Processing
System Order
Fulfillment
Billing
Manages Complexity
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 7
What is Hierarchy?
Levels of abstraction Asset
Increasing
abstraction
Truck
Conceptual entity
Chemical Process
: Professor
a + b = 10
ProfessorClark
Class Name Only
Professor Clark
ProfessorClark :
Professor Object Name Only
OO Principle: Abstraction
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 16
Sample Class
Class
Course
Properties Behavior
Name Add a student
Location Delete a student
a + b = 10
Days offered Get course roster
Credit hours Determine if it is full
Start time
End time
a + b = 10
Professor
Professor Clark
Professor
Professor Jones
OOAD Using the UML - Introduction to Object Orientation, v 4.2
Copyright 1998-1999 Rational Software, all rights reserved 21
Basic Concepts of Object Orientation
Object
Class
Attribute
Operation
Interface (Polymorphism)
Relationships
Object
Class
CourseOffering
Class
addStudent
deleteStudent
getStartTime
Operation getEndTime
Manufacturer B
Manufacturer A Manufacturer C
OO Principle:
Encapsulation
(Next Class)