4 The object of conversation

This chapter covers

  • Object-oriented APIs
  • Objects with classes
  • Inheritance
  • Polymorphism
  • Composition

When having a conversation, particularly one with any complexity, it’s helpful if everyone in the conversation has the same context. It would be difficult to have conversations if every time someone began a new sentence they had to present the full context of the conversation.

From the standpoint of software functions, the context is the current state of the information the functions are working with. In the previous chapter, we talked about creating function signatures where the data state is passed around to the function calls in consistent ways.

Utilizing function signatures is a useful and powerful way to conduct ...

Get The Well-Grounded Python Developer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.