When using Java and C++ we must call the super class constructor as first line in the subclass.
Example:
public class MySubClass extends MyClass {
public MySubClass() {
super(); // must be first line code
... some code in the constructor ...
}
}
When using Python we don't have to call the super class constructor as first line:
class MySubClass(MyClass):
def __init__(self):
... some code ...
MyClass.__init__(self)
Are there any differences in Python when calling the super class constructor as first line?