language.
Q:3.
class hello:
definit__(self,a='Visit Prutor.ai
website'):
self.a=a
def display(self):
return 0
obj=hello()
print( obj.display() )
Answers
Answered by
0
Answer:
Ok mate.
Explanation:
The def __init__ meathod was wrong i have corrected it below
class hello:
def __init__(self,a='Visit Prutor.aiwebsite'):
self.a=a
def display(self):
return 0
obj=hello()
print( obj.display() )
Similar questions
Science,
27 days ago
Physics,
27 days ago
History,
1 month ago
Computer Science,
9 months ago
Math,
9 months ago