Question:

What Will Be The Output Of The Following Code Snippet?

class Test:
     def __init__(self):
         self.x = 1
         self.__y = 1
 
     def getY(self):
         return self.__y
 
 val = Test()
 val.x = 45
 print(val.x)

 

Answers:


Keywords:

© 2017 QuizBucket.org