Question:

Which of the following statments is correct regarding the below Python code?

class A:
    def __init__(self):
        self.a = 1
        self.__b = 1
 
    def getY(self):
        return self.__b
obj = A()
obj.a = 45
print(obj.a)

Answers:


Keywords:

© 2017 QuizBucket.org