1
Reply

How you can prevent a class from being inherited by other class in C#?

Sahil Bansal

Sahil Bansal

12y
2.3k
0
Reply

    Yes. The keyword “sealed” will prevent the class from being inherited