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

Sealed
methods also can be sealed. Keep class as public but make method as sealed