Haryana Police Male Constable 23 Dec 2018 Paper
© examsiri.com
Question : 38 of 100
Marks:
+1,
-0
What is the output of the following code?
class test:
def __init__(self,a="Old"):
self.variable = a
def display(self):
print(self.variable)
obj = test()
obj.display()
class test:
def __init__(self,a="Old"):
self.variable = a
def display(self):
print(self.variable)
obj = test()
obj.display()
Go to Question: