Department of Computer Engineering
Object-Oriented Design
Lecture 14: Design Workflow
Sharif University of Technology 1
Object-Oriented Design Lecture 14: Design Workflow Sharif University - - PowerPoint PPT Presentation
Object-Oriented Design Lecture 14: Design Workflow Sharif University of Technology 1 Department of Computer Engineering UP iterations and workflow Phases Workflows Inception Elaboration Construction Transition Requirements An iteration
Department of Computer Engineering
Sharif University of Technology 1
Sharif University of Technology 2
Preliminary Iteration(s) iter. #1 iter. #2 iter. #n iter. #n+1 iter. #n+2 iter. #m iter. #m +1
Inception Elaboration Construction Transition
Phases Workflows
An iteration in the elaboration phase Requirements Design Implementation Test Analysis
Iterations
Sharif University of Technology 3
Sharif University of Technology 4
Sharif University of Technology 5
Sharif University of Technology 6
Sharif University of Technology 7
diagram as well.
subsystems, etc.
for example).
Sharif University of Technology 8
enough behavior of their own.
another way (e.g., as flag attributes) in the design.
Sharif University of Technology 9
Sharif University of Technology 10
Sharif University of Technology 11
Sharif University of Technology 12
Sharif University of Technology 13
them;
Sharif University of Technology 14
"fragile base class" problem: changes in the base class ripple down the hierarchy;
time and fixed at runtime.
Sharif University of Technology 15
from them.
an API
Sharif University of Technology 16
Override superclass members in the subclasses to provide new functionality.
combining them into a new class. Attach an common interface to this new class for interoperability with other code.
Sharif University of Technology 17
new class is now a subclass of the original class.
has now the original class as a member.
Sharif University of Technology 18
logical
aggregation.
Sharif University of Technology 19
situation.
Sharif University of Technology 20
manager or a cashier) by inheritance if these roles change
Sharif University of Technology 21
always use aggregation to represent "is role played by".
Sharif University of Technology 22
inheritance; this is a safe and powerful idiom.
Sharif University of Technology 23
private members.
Sharif University of Technology 24
degree of decoupling between contract and implementation.
value types.
inheritance.
Sharif University of Technology 25
Sharif University of Technology 26
Sharif University of Technology 27
the template name and the argument list.
Sharif University of Technology 28
can create and use instances of the nested class.
event handling in GUI classes.
Sharif University of Technology 29
Sharif University of Technology 30