How do you prevent a class from being inherited? | Eklavya Online

How do you prevent a class from being inherited?

In C#, we can use the sealed keyword to prevent a class from being inherited.