isSealed abstract method

bool isSealed()

Checks if this class is sealed (exhaustive pattern matching).

Returns:

  • true if the class is declared with sealed modifier
  • false for non-sealed classes

Note: Sealed classes enable exhaustive checking in pattern matching.

Implementation

bool isSealed();