Can you prevent your class from being inherited and
becoming a base class for some other classes?

Answer Posted / shantanu singh patel

Yes you can make it by using Sealed keyword.

No when your class in Sealed you cant inherit the class
then the question of base class for some other class is not
significant.

Thanks and Regards,
Shantanu

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 the default boolean value in c#?

507


Why do we use partial class in c#?

481


What are the types of inheritance in c#?

495


How does the lifecycle of Windows services differ from Standard EXE?

516


What kind of the information stored inside the assembly?

551






What do you use c# for?

488


What is assembly manifest?

522


What does type safety mean?

573


How to exclude a property from xml serialization?

535


How to sort an int array in c#?

531


What is the use of console readkey ()?

474


Which is faster abstract class or interface in c#?

540


Why are local variables stored in stack?

554


What does executescalar return in c#?

454


What is the delegates in c#?

508