Apr-21-2022, 12:03 PM
This code executes when the class C code is parsed, not when an instance of the class is made.
This is a pretty good, short article about multiple inheritance in Python.
https://stackoverflow.com/questions/9575...-right-way
print("Just inside class C")I know that classes A, B and C are all just examples, but they are horrible examples. If C inherits from classes A and B, it would be because both A and B have things to offer that are different from each other and C should call the __init__() methods for both A and B.
This is a pretty good, short article about multiple inheritance in Python.
https://stackoverflow.com/questions/9575...-right-way