In Python there is the possibility of using inheritance to obtain different classes after one parent. But is it possible that I have various "child" classes that have the same methods that strictly depends on the parent class, and that each one inherits a different parent, like the following example
class Parent_1():
methods for parent 1
class Parent_2():
methods for parent 2
class Parent_3():
methods for parent 3
GENERAL_CHILD_METHODS -> is an object that includes all the methods that all the childs will share
class Child_1(inherits Parent_1 and uses GENERAL CHILD METHODS)
class Child_2(inherits Parent_2 and uses GENERAL CHILD METHODS)
class Child_3(inherits Parent_3 and uses GENERAL CHILD METHODS)
is it possible to create something like the GENERAL_CHILD_METHOD
object that I mention in the example? so that I do not have to copy all the same methods for each child, because in the end they are the same. So I suppose there is a way to wrap this methods so that I only have to use one line to call all of them in each Child class and not to have to copy everything all the time.