LLD - Design — Chess Game
Given the following code, what will be the output?
class Piece:
def move(self):
return "Base move"
class Knight(Piece):
def move(self):
return "L-shaped move"
pieces = [Piece(), Knight()]
for p in pieces:
print(p.move())