Skip to main content
Engineering LibreTexts

17: Classes and methods

  • Page ID
  • Although we are using some of Python’s object-oriented features, the programs from the last two chapters are not really object-oriented because they don’t represent the relationships between programmer-defined types and the functions that operate on them. The next step is to transform those functions into methods that make the relationships explicit.

    Code examples from this chapter are available from, and solutions to the exercises are in

    • Was this article helpful?