python call super constructor

If you want to call the constructor of a parent class you have a couple of options. For example: In this first example we are talking about “new-style” classes. Basically these are classes that inherit from “object” ( class Parent(object) ). In this case you can call the super() method with a reference to Child […]

python call constructor of parent class