How do you prevent a class from being inherited?Dot Net Interview Questions In C#, we can use the sealed keyword to prevent a class from being inherited. Total Views: 38,195