human
Can you provide a the Python program you requested given the following:
I am working on the file "Closure a dekorator.ipynb".
The first task is:
Pomocou Closure sa da vytvorit napriklad aj jednoducha trieda
Can you write Python program for it?
assistant
#Here is the Python program you requested.

class A:
    def __init__(self, x):
        self._x = x
        
    def incr(self):
        self._x += 1
        return self._x
    
obj = A(0)

obj.incr()