INST 326 Module 7
Topics
This module will cover two important Object-Oriented patterns, “inheritance” and “composition”. Inheritance is a way to make objects share functionality by relating them to one another in something like a parent-child relationship. Composition, on the other hand, is a pattern for making objects relate to one another by a process of containment. A good example of this might be a “book” object being made up of “page” objects.
Readings
- “Classes” (Chapter 10) in Programming in Python 3 (zyBook)
Additional Readings (Optional, as needed)
- Severance, Python for Everybody, Chapter 15: “Object-Oriented Programming”
- The Python Tutorial (2001-2019). Part 9: Classes.