A
Q. What is the output of the following code?
Code:
class A:
def __init__(self):
self.var = 1
a = A()
print(a.var)
def __init__(self):
self.var = 1
a = A()
print(a.var)
- Correct Answer - Option(B)
- Views: 25
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.