Syllabus

  1. 01Thinking in objectsWhy programs are built from objects, how to turn a real thing into a class design, how to implement it with rules and a readable repr, and how objects cooperate through composition.4 lessons
    1. 01Why objects?
    2. 02Modeling a real thing
    3. 03Building the class
    4. 04Objects working together
  2. 02Designing a system of classesGive every class one job and keep its data behind its methods, model variants with inheritance and polymorphism, and plan a multi-class project before building it.3 lessons
    1. 01Responsibilities and encapsulation
    2. 02Inheritance for variants
    3. 03Planning a project
  3. 03Project: Star TraderBuild a complete multi-class game step by step: an exception family and a cargo hold, planets and a ship with all-or-nothing trades, and a command console that ties the model to the player.3 lessons
    1. 01Project part 1: the cargo hold
    2. 02Project part 2: planets and the ship
    3. 03Project part 3: the captain's console