Class

Object Oriented Principles

Class, object, attributes, states, methods, messages

OOP concepts

  1. Encapsulation and info hiding
  2. Polymorphism and Dynamic binding
  3. Inheritance (single vs multiple)

Design Criteria

  1. Cohesion
    1. 13.png
  2. Coupling
    1. Method14.png
    2. Class15.png

Law of Demeter16.png

Connascence

17.png

Method Specification

Writen documents that include explicit
instructons on how to write the code to
implement the method
Specifcatons need to be iery clear and easy
to understand
There is no formal syntax specifcaton

General informaton
Method name, programmer assigned, due date,
target programming language, etc.
Eients that trigger the method
Example: Mouse-click, key-press
Message Passing
The message passing to and from the method
(described using sequence or collaboraton diagrams)
Algorithm Specifcaton
Writen in: Structured English, Pseudocode, etc.
Or drawn in: Actiity diagram or Sequence diagram

 

18.png19.png

Leave a comment