How python function A executed when call function B?
How python function A executed when call function B? Question: The existing code is: class Base: def hello(self): print(‘hello’) class A(Base): def greet(self): self.hello() print(‘how are you?’) class B(Base): def greet(self): self.hello() print(‘how are you doing?’) How can I write code to implement that call self.hello() firstly when call self.greet(), but not add self.hello() in …