Department of Computer Engineering
Object-Oriented Design
Lecture 9: Generalization/Specialization
Sharif University of Technology 1
Object-Oriented Design Lecture 9: Generalization/Specialization - - PowerPoint PPT Presentation
Object-Oriented Design Lecture 9: Generalization/Specialization Sharif University of Technology 1 Department of Computer Engineering Analysis Workflow: Analyze a Use Case The analysis workflow consists of the following activities:
Department of Computer Engineering
Sharif University of Technology 1
Sharif University of Technology 2
general thing.
more specific thing anywhere the more general thing is expected.
elements.
Sharif University of Technology 3
Sharif University of Technology 4
classes.
Sharif University of Technology 5
signature as the parent operation it wishes to override; the operation signature consists of an operation name, types of all parameters in
Sharif University of Technology 6
concrete subclasses must implement.
Sharif University of Technology 7
Sharif University of Technology 8
an abstract class, then substitute concrete subclasses at runtime - such systems are very flexible and easy to extend; just add more subclasses.
OO.
Sharif University of Technology 9
Sharif University of Technology 10
message in different ways.
Sharif University of Technology 11
constraints:
Sharif University of Technology 12
Sharif University of Technology 13
Sharif University of Technology 14
Sharif University of Technology 15