269.

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

that’s what keyword sealed in the class definition is for. The developer trying to derive from your class will get a message: cannot inherit from Sealed class WhateverBaseClassName. It’s the same concept as final class in Java.

sealed class SealedClass
{
  public int x;
  public int y;