Session Details
Week 6,
Session 16 — Mon Apr 11
Reading
-
Big Java, Ch. 8
HW Due
-
HW 15
Topics
-
Convocation schedule
-
Cohesion and Coupling
-
Immutable classes
-
Side effects
-
UML class diagrams, relationships
-
Static fields and methods
Resources
-
Slides
Outline
-
[10 min] Questions
-
Class design, lecture:
-
[5 min] Good class design and bad class smells
-
[15 min] Cohesion, coupling, UML exercise
-
[10 min] Immutability and Side effects
-
[5 min] Break
-
Class design exercise:
-
[5 min] Research chess, think about the problem
-
[3 min] Work in groups of three to brainstorm classes
-
[10 min] Sketch UML diagrams in groups
-
[7 min] Share ideas
-
Static fields and methods:
-
[15 min] Static fields and methods
-
[20 min] Exercise on Static (Polygons), finish as homework
HW Assigned
-
HW 16