Say I have the following
class ClassA (object):
def meth1() ..
class ClassB (ClassA):
def meth1() ..
def meth2() ..
def meth3() ..
class ClassC (ClassB):
calls meth2() and meth(3)
I am trying to refactor ClassC to make it inherit from ClassA instead. However, ClassC uses two important methods from ClassB that I don't want to rewrite, they have to stay under ClassB. Also, I don't want meth1 in ClassA to be overwritten by ClassB. Is there a way to call meth2 and meth3 from ClassB in ClassC and make ClassC inherit ClassA and use meth1 from ClassA? I hope my explanation is clear. And I'd appreciate it if you direct me to some documentation about this.