Question OOP-ENC-0035
EasyWhat is the output of this code?
class A:
def __init__(self):
self.__x = 5
def get(self):
return self.__x
a = A()
print(a.get())
- A.
Error
- B.
__x
- C.
Sign up free to see the answer and a step-by-step explanation.