How can you prevent classes to be inherited?

Answer Posted / chvramana

Using Keyword Sealed. You can created Sealed class and
You can prevent the class to be inherited.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the boolean data types in c#?

514


How many digits is a 32 bit number?

483


What is difference between overloading and short circuiting?

474


In howmany ways can you deploy an assembly?

545


Is dll a library?

498






What are types in c#?

503


What is string class in c#?

491


Which class does the remote object has to inherit?

612


How main method is called in c#?

523


What is oledbconnection c#?

499


What is call back method?

524


What is data quality assurance?

448


How can you prevent escaping on backslashes in C# with string definitions?

707


What is an object and a class?

565


What is polymorphism in c sharp?

533