Session Details

Week 6, Session 16 — Mon Jan 14

Reading

  1. Big Java, Ch. 8

HW Due

  1. HW 15

Topics

  1. Cohesion and Coupling
  2. Immutable classes
  3. Side effects
  4. UML class diagrams, relationships
  5. Static fields and methods

Resources

  1. Slides

Outline

  1. [10 min] Questions
  2. Class design, lecture:
  3. [5 min] Good class design and bad class smells
  4. [15 min] Cohesion, coupling, UML exercise
  5. [10 min] Immutability and Side effects
  6. [5 min] Break
  7. Class design exercise:
  8. [5 min] Research chess, think about the problem
  9. [3 min] Work in groups of three to brainstorm classes
  10. [10 min] Sketch UML diagrams in groups
  11. [7 min] Share ideas
  12. Static fields and methods:
  13. [15 min] Static fields and methods
  14. [20 min] Exercise on Static (Polygons), finish as homework

HW Assigned

  1. HW 16