Question 45Asked in Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)

Which keyword is used to indicate that a class cannot be inherited by other classes?किस कीवर्ड का उपयोग यह इंगित करने के लिए किया जाता है कि एक वर्ग अन्य वर्गों द्वारा विरासत में

किस कीवर्ड का उपयोग यह इंगित करने के लिए किया जाता है कि एक वर्ग अन्य वर्गों द्वारा विरासत में नहीं लिया जा सकता है?
  1. Asealedसील
  2. Bfinalअंतिम
  3. Cprivateनिजी
  4. Dstaticस्थैतिक
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# का शब्द लेती है।

From Bihar STET 2025 Paper II Computer Science PYQ, 4 Nov 2025, Shift 2 (2:00 PM)

This is question 45 of Bihar STET 2025 Paper II Computer Science PYQ, 4 Nov 2025, Shift 2 (2:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.