⬅︎ Back to Python new-style classes and the super() function
In older version of python; for super keyword we use to give as: super(current_class_name, self).method_name()But for newer version of python or say new style classes we can simply give: super().method_name()What it'll do is to pass the control to the parent class instead of performing execution for current class. Having any problem; Ping me @talatparwez27@gmail.com
Comment
In older version of python; for super keyword we use to give as:
super(current_class_name, self).method_name()
But for newer version of python or say new style classes we can simply give:
super().method_name()
What it'll do is to pass the control to the parent class instead of performing execution for current class.
Having any problem; Ping me @talatparwez27@gmail.com