sealed
permits
public sealed class Shape permits Circle, Rectangle { } class Circle extends Shape { } class Rectangle extends Shape { }