How can you prevent classes to be inherited?

Answer Posted / jaffer

By using Sealed keyword before class.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is private virtual in C#?

584


Is functional interface runnable?

508


Name some properties of array.

479


Explain About remoting and web services. Difference between them

536


What is the difference between protected and private?

463






What is pure abstract class in c#?

454


What are the ways in which client can create object on server in cao model?

507


How do you create dlls in .NET

574


Why we use get set in c#?

497


Can we maintain state in webservice?

500


what are nullable types in c#

522


What is a sealed class?

511


What does type safety mean?

573


What are the properties in c#?

488


What are Regex / regular expressions ?

584