Python: Inheritance versus Composition
It is definitely not good to inherint Child from Parent or Parent from Child. The correct way to do it is to make a base class, let’s say Person and inherit both Child and Parent from it. An advantage of doing this is to remove code repetition, at the moment you have only firstname / … Read more