Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Library

Create a class hierarchy to represent a library that will be able to represent the following entities.

  • Author (name, birthdate, books)
  • Book (title, author, language, who_has_it_now?, is_on_waiting_list_for_whom?)
  • Reader (name, birthdate, books_currently_lending)

Methods:

  • write_book(title, language,)