Abstract classes
Not used much in Python
Possible:
class GraphicalObject:
def draw(self, display):
raise NotImplementedError
def move(self, dx, dy):
raise NotImplementedError
....
Previous slide
Next slide
Back to first slide
View graphic version