Course chapters Explore all 18 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.
Find a chapter No matching chapters. Try another term.
01 · Objects and responsibilities 4 chapters ⌄ Distinguish an object from the class that describes it Practice: Model a library copy rather than a generic noun collection.
Read the primary reference Lesson guide · Ready Design objects around valid state and meaningful operations.
Explain how methods preserve a valid state Practice: Define booking rules and place validation at the right boundary.
Read the primary reference Expanded reading · Ready Establish valid initial state and explicit ownership Practice: Design construction for an object that requires a dependency.
Read the primary reference Lesson guide · Ready Separate equality by value from identity through change Practice: Classify an address, money amount, and customer record.
Read the primary reference Lesson guide · Ready 02 · Contracts and reuse 4 chapters ⌄ Describe behavior that callers can rely on Practice: Specify a notification interface with failure behavior.
Read the primary reference Lesson guide · Ready Build a clear object relationship without inheriting implementation unnecessarily.
Reuse behavior without coupling to a superclass Practice: Compose a report from a data source and formatter.
Read the primary reference Expanded reading · Ready Evaluate whether a subtype preserves caller expectations Practice: Find a broken subtype in a payment example.
Read the primary reference Lesson guide · Ready Replace type-switching with a shared behavioral contract where useful Practice: Implement two storage adapters behind one interface.
Read the primary reference Lesson guide · Ready 03 · Design quality 4 chapters ⌄ Group responsibilities that change together Practice: Split an oversized user-service class by responsibility.
Read the primary reference Lesson guide · Ready Keep policy independent of infrastructure details Practice: Inject a clock or sender into a service.
Read the primary reference Lesson guide · Ready Test public outcomes and important state transitions Practice: Write tests around a reservation lifecycle.
Read the primary reference Lesson guide · Ready Change internal structure while preserving observed behavior Practice: Replace duplicated branches with a focused collaborator.
Read the primary reference Lesson guide · Ready 04 · Applied design 4 chapters ⌄ Represent interchangeable policies without unnecessary abstraction Practice: Model two delivery-fee calculations.
Read the primary reference Lesson guide · Ready Centralize complex creation when it clarifies ownership Practice: Design creation for an object with optional dependencies.
Read the primary reference Lesson guide · Ready Separate a state change from optional reactions Practice: Model a completed-order event with failure considerations.
Read the primary reference Lesson guide · Ready Apply invariants, contracts, and composition in a small model Practice: Design a library lending service with overdue rules.
Read the primary reference Lesson guide · Ready 05 · Design boundaries in real applications 2 chapters ⌄ Represent permitted transitions explicitly Practice: Model a lesson publication workflow with review and retirement states.
Read the primary reference Lesson guide · Ready Explain why a storage record need not be the public domain interface Practice: Map an object to a data record without exposing database details to callers.
Read the primary reference Lesson guide · Ready Learn it. Check it. Try again. 14 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.
Open Object-oriented design practice In-depth study guide Follow the subject from its foundations through worked examples and practice. Each guide includes its scope, version assumptions, solutions, and sources for further study.
OpenLearning study guide Edition 2026.12
Object-oriented design: clear models, reliable behavior Learn to design understandable object models, protect invariants, choose composition or inheritance, isolate dependencies, and test behavior using runnable Python examples.
pages 76
chapters 15
diagrams 7
exercises with solutions 30 6,982 words of explanations and practice · 15 worked examples · 15 review questions
Improve this guide on GitHub Original text · CC BY-SA 4.0
Browse all study guides
Books & references Free reading at the publisher or author’s site. External materials keep their own licenses.