MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Intermediate Object-Oriented Programming in Python

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga