# SimpleClock Example # Create a SimpleClock class with # field sec and method tick. class SimpleClock: def __init__(self, the_sec): self.sec = the_sec def tick(self): self.sec += 1 def __str__(self): return str(self.sec)