Beruflich Dokumente
Kultur Dokumente
Lecture # 1
OO Objectives
We want a development method which:
Is able to guide us through analysis, design,
and implementation using one consistent
paradigm throughout those phases
Is less likely to generate errors
Facilitates reuse of designs and code
Design
It emphasizes a conceptual solution that fulfills
the requirements.
E.g. Database design or OO design
Examples- Library IS
OO Analysis - in the case of the library
information systems, one would find
concepts like book, library, patron
OO Design - emphasis on defining the
software objects; ultimately these objects
are implemented in some programming
language; Book may have a method
named print.
Example - contd.
Book
domain concept
title
representation in an
object-oriented
programming language
visualization of
domain concept
Flight IS
Plane
tailNumber
domain concept
representation in an
object-oriented
programming language
visualization of
domain concept
In Summary...
Define use
cases
Define domain
model
Define
Interaction
diagrams
Define design
class diagrams
Short Example
Dice game
A software simulates a player rolling two dice. If
the total is seven, they win; otherwise, they
lose.
Use case:
Actors:
Play a game
Player