What is the purpose of the "super" keyword in Java and other similar languages?जावा और अन्य समान लैंग्वेज में "super" कीवर्ड का उद्देश्य क्या होता है?
जावा और अन्य समान लैंग्वेज में "super" कीवर्ड का उद्देश्य क्या होता है?
Show answerHide answer
Correct answer: (A) It refers to the superclass in inheritanceयह इनहेरिटेंस में सुपरक्लास को संदर्भित करता है।
Explanation
"super" refers to the immediate parent class. It is used to call the parent's constructor or methods and to access the parent's fields."super" निकटतम पैरेंट क्लास को संदर्भित करता है। इसका उपयोग पैरेंट का कंस्ट्रक्टर या मेथड कॉल करने और पैरेंट के फील्ड तक पहुँचने के लिए होता है।