What will be displayed by the following code?

Loading

Choose the correct option.

What will be displayed by the following code?
class A:
    def __init__(self):
        self.i = 1
    def m(self):
        self.i = 10
class B(A):
    def m(self):
        self.i += 1
        return self.i
def main():
    b = B()
    print(b.m())
main()

A. 1
B. 2
C. 10
D. i is not accessible from b.