Which concept allows a subclass to provide a specific implementation of a method thatकौन सी अवधारणा एक उपवर्ग को एक विधि का एक विशिष्ट कार्यान्वयन प्रदान करने की अनुमति देती है
Which concept allows a subclass to provide a specific implementation of a method that
is already defined in the superclass?
कौन सी अवधारणा एक उपवर्ग को एक विधि का एक विशिष्ट कार्यान्वयन प्रदान करने की अनुमति देती है
जो पहले से ही सुपरक्लास में परिभाषित है?
Show answerHide answer
Correct answer: (D) Overridingअभिभावी
Explanation
Method overriding lets a subclass provide its own implementation of a method already defined in its superclass, with the same name and signature. Overloading means the same name with different parameters.Method overriding में subclass अपनी superclass में पहले से परिभाषित मेथड का अपना कार्यान्वयन देती है, उसी नाम और signature के साथ। Overloading में नाम वही रहता है पर पैरामीटर अलग होते हैं।