Python - Methods and Behavior Definition
What will be the output of this code?
class Counter:
def __init__(self):
self.count = 0
def increment(self):
self.count += 1
c = Counter()
c.increment()
c.increment()
print(c.count)