How you can prevent a class from being inherited by other class in C#?
Sahil Bansal
Yes. The keyword “sealed” will prevent the class from being inherited