3 ms·
It’s basically as complicated as “If a subclass and a parent class both define a `bar()` method, and you have an instance of the subclass named `foo`, calling `
by Shish2k 4y ago
It’s basically as complicated as “If a subclass and a parent class both define a `bar()` method, and you have an instance of the subclass named `foo`, calling `foo.bar()` will call the subclass version”
I actually find that simpler than some of the spaghettis you can create with Python’s multiple inheritance :P