OOP "Basic" Design Stages Steps --- from an OOP perspective
The "Basic" STAGES
STAGE 1: Requirements
STAGE 2: Design -- when no specific architecture to your system is indicated partition using the popular "Presentation-Busines-Data" 3 Layer Architecture
STAGE 3: Implementation + STAGE 4:Document &Deploy- as normal
|
Genral OOP Perspective Tips
Think Object OrientedBuild hierarchies of classes.
ATM example: Create an abstract class Transaction that is a superclass for Withdrawal, Deposit, etc. It can have an abstract responsibility "execute a financial transaction", that is implemented differently for each subclass. |
Hierarchy Identification Tips
1. Explore is-a ("kind-of") relationships. ATM example: Withdrawal is a (kind of) Transaction. Withdrawal is not "part of" Transaction. 2. Name key abstractions. 3. Place super/subclass sets in hierarchies. 4. Look for reusable behaviors
|