Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
m cleaning up, typo(s) fixed: newly- → newly using AWB
Jc1500 (talk | contribs)
m Python: added a missing ":"
Line 500:
instance = super(ExampleClass, cls).__new__(cls)
return instance
def __init__(self, value):
print("Initialising instance...")
self.payload = value