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.__y = 45
print(val.getY())

 

Answers:


Keywords:

© 2017 QuizBucket.org