calling child class method from parent class file in python
Doing this would only make sense if A is an abstract base class, meaning that A is only meant to be used as a base for other classes, not instantiated directly. If that were the case, you would define methodB on class A, but leave it unimplemented: class A(object): def methodA(self): print(“in methodA”) def methodB(self): … Read more