# Exercise: Code from a Class Diagram

Exercise: Code from a Class Diagram: Exercise: Code from a Class Diagram.

Updated: November 17, 2026

1. [Exercise: Code from a Class Diagram](https://www.ask-codey.com/lessons/exercise-dp-code-from-a-diagram) (Apprentice): Take a ticket from Riverside Library's app team: a class diagram of the library's media is agreed, and the code doesn't match it yet. Finish the classes so audiobooks are lent like books, a member holds up to five items, and giving one back makes room, with the tests green throughout.

Source: https://www.ask-codey.com/courses/design-patterns/topics/exercise-dp-code-from-a-diagram
