LLD - Behavioral Design Patterns — Part 1
In this Python code, what is the error?
class Base:
def template(self):
self.step1()
self.step2()
def step1(self):
print('Step 1')
class Derived(Base):
def step2(self):
print('Step 2')
obj = Derived()
obj.template()