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