OOPS Design Rules
Software :
Object
Textual Analysis of Use Cases : Nouns = Classes and Verbs =methods.
Interface Vs Class
Coding to Interface is better as user has option to extend open.
Extra Classes make softare inflexible and difficult to change
Software :
- Perform what it supposed to.
- Flexible (by adding OOPS)
- Maintainable and Reusable
Object
- Object naming should be related to its operation
- Each object should not perform unrelated activities
- There should not be any unused properties or fields.
- Encapsulation helps divide application into logical parts.
- Duplicate code should be encapsulated separately
- Encapsulate what varies to protect class from unnecessary chages
Textual Analysis of Use Cases : Nouns = Classes and Verbs =methods.
Interface Vs Class
Coding to Interface is better as user has option to extend open.
Extra Classes make softare inflexible and difficult to change
No comments:
Post a Comment