What are Sealed Classes in C#?

Answer Posted / vijay rana

if we want to prevent a class to be inherited then we use
the keyword sealed,
means this class will not be inherited now

Is This Answer Correct ?    117 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is type system in c#?

522


What does type safety mean?

579


Is c# front end or back end?

515


What is indexer c#?

469


List out the differences between array and arraylist in c#?

527






Why use a singleton instead of static methods?

465


What are accessors?

536


If casting fails what type of exception is thrown?

484


What is Co- and Contra-Variance in C#?

540


How do I calculate relative time?

505


Why extension method is static?

471


What are the benefits of using generics in c#?

484


If I want to override a method one of class A and in class b then how do you declare?

748


What is the difference between list and arraylist c#?

526


Is c# an open source language?

550