Which keyword is used to indicate that a class cannot be inherited by other classes?किस कीवर्ड का उपयोग यह इंगित करने के लिए किया जाता है कि एक वर्ग अन्य वर्गों द्वारा विरासत में
किस कीवर्ड का उपयोग यह इंगित करने के लिए किया जाता है कि एक वर्ग अन्य वर्गों द्वारा विरासत में
नहीं लिया जा सकता है?
Show answerHide answer
Correct answer: (A) sealedसील
Explanation
In C#, the sealed keyword stops a class from being inherited. In Java the same effect comes from final. The key takes the C# term.C# में sealed कीवर्ड क्लास को विरासत में लिए जाने से रोकता है। Java में यही प्रभाव final से मिलता है। कुंजी C# का शब्द लेती है।