Question OOP-ENC-0041
MediumWhat is the output of this code?
class Account:
def __init__(self):
self.__balance = 100
a = Account()
a.__balance = 500
print(a._Account__balance)
- A.
AttributeError
- B.
0
- C.
Sign up free to see the answer and a step-by-step explanation.