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

Answer Posted / rakesh

We can also make the methods sealed.In that case ,the class
can inherit but the sealed methods in that class cannot

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is datetime immutable c#?

496


What is the wildcard character in sql?

518


Classes and structs can be declared as static, is this statement true or false?

549


How to find whether the application is run from inside ide or not?

570


Can abstract class have constructor?

496






What is web forms in c#?

497


What are callback methods in c#?

502


Are c# generics the same as c++ templates?

495


What is command object in c#?

514


Is c# a backend language?

565


What is the default scope of a class in c#?

478


Is inheritance possible in c sharp?

626


What is the difference between method and function in c#?

443


How do you remove white spaces from a string?

491


How does the clr work?

495