Aan de slagGa gratis aan de slag

MRO for multiple inheritance

Similar to before, you've built a Smartphone class that inherits from two classes; Computer and Telephone. The class definition looks something like this:

class Smartphone(Computer, Telephone):
  ...

Identify the order in which Python will search for methods in the Smartphone class hierarchy upon execution.

Deze oefening maakt deel uit van de cursus

Intermediate Object-Oriented Programming in Python

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen