<<< Sizes of objects     Index     Week 2 Reading: pages 10-17  >>>

6. Object design principles


  • Keep objects small:

    • minimum required data

    • minimum methods required by functionality.

  • Each object should be designed to have specific tasks.

  • A system should contain many small interacting objects rather than a few large objects.

    small interacting objects
<<< Sizes of objects     Index     Week 2 Reading: pages 10-17  >>>