Data Science Wire

Quiz: Inheritance and Composition: A Python OOP Guide

Real Python Data Science2d4 min read

In this quiz, you'll test your understanding of inheritance and composition in Python. These are two major concepts in object-oriented programming that help model the relationship between two classes. By working through this quiz, you'll revisit how to use inheritance and composition in Python, model class hierarchies, and use multiple inheritance.

Read the full story at Real Python Data Science →

More in Data Science