Session Details

Week 2, Session 4 — Tue Mar 16

Reading

  1. Big Java, §3.1–3.8

HW Due

  1. HW 3

Topics

  1. Object-Oriented Encapsulation
  2. Implementing Classes in Java

Resources

  1. Slides

Outline

  1. [10 min] Questions
  2. [5 min] OO encapsulation
  3. [20 min] Java classes vs. Python classes. The BankAccount project has the code that the slides discuss.
  4. [5 min] Break
  5. [20 min] Live coding on implementing a class: implement Shouter and add a test to ShouterTest in the WordGames project, as specified in the WordGames instructions.
  6. [15 min] More live coding on implementing a class: implement Censor and add a test to CensorTest in the WordGames project, as specified in the WordGames instructions.
  7. [30 min] Begin homework (continue working per the WordGames instructions).

HW Assigned

  1. HW 4