Question: You are given the following program: class Number: def __init__(self): self.__num = 0 def setnum(self,x): self.__num=x def getnum(self): return self.__num ma = Number() print(ma.__class__.__name__) The
You are given the following program:
class Number: def __init__(self): self.__num = 0 def setnum(self,x): self.__num=x def getnum(self): return self.__num ma = Number() print(ma.__class__.__name__) The output of the above program is ___________
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
