49. 클래스 변수와 인스턴스 변수의 가림
다음 Python 프로그램의 실행 결과를 쓰시오.
1class Counter:2total = 03step = 145def __init__(self, name):6self.name = name7self.value = 08Counter.total += 1910def tick(self):11self.value += self.step12self.step += 113return self1415def __add__(self, other):16return self.value + other.value1718def __str__(self):19return f"{self.name}({self.value})"202122a = Counter("A")23b = Counter("B")24a.tick().tick()25Counter.step = 1026b.tick()27c = Counter("C")28for obj in [a, b, c]:29print(obj, obj.step)30print(a + b, Counter.total, Counter.step)