1# test that we can override a class method with an instance method
2
3class A:
4    def foo(self):
5        return 1
6
7a = A()
8print(a.foo())
9a.foo = lambda:2
10print(a.foo())
11