Closed nullcount closed 1 year ago
Example of inheritance
class State: def transition(self, event): raise NotImplementedError class InitialState(State): def transition(self, event): if event == "start": return StartedState() return self
Example of inheritance