Default Constructor Example in Python

8 / 100 SEO Score
class Division:
a=0
b=0
def __init__(self):
self.b=1
def display(self):
print(self.a/self.b)
d=Division()
d.display()

Leave a Reply

Your email address will not be published. Required fields are marked *