The Diamond Problem

Learn about the diamond problem and how to resolve it.

Overview

We can use multiple inheritance to add this new class as a parent of our existing Friend class. The tricky part is that we now have two parent __init__() methods, both of which need to be called. And they need to be called with different arguments. How do we do this? Well, we could start with a naive approach for the Friend class, also:

Get hands-on with 1200+ tech skills courses.