class CPU: def freeze(self): pass def jump(self, position): pass
Convert the interface of a class into another interface clients expect. It lets classes work together that couldn't otherwise because of incompatible interfaces. python architecture patterns pdf
# Usage news_agency = Subject() user1 = Observer("Alice") user2 = Observer("Bob") class CPU: def freeze(self): pass def jump(self, position):