What is the purpose of the "super" keyword in Python?पायथन में "सुपर" कीवर्ड का उद्देश्य क्या है?
पायथन में "सुपर" कीवर्ड का उद्देश्य क्या है?
Show answerHide answer
Correct answer: (A) It refers to the superclass of the current classयह वर्तमान वर्ग के सुपरक्लास को संदर्भित करता है
Explanation
In Python, super() returns a proxy to the parent (superclass), so you can call its methods, for example super().__init__().Python में super() parent (superclass) का एक proxy लौटाता है, ताकि आप उसके methods बुला सकें, जैसे super().__init__()।