Java запечатал класс
package com.tedblob.numbersystem;
public sealed class NumberSystem
{ }
final class Binary extends NumberSystem { .. }
final class Octal extends NumberSystem { .. }
final class HexaDecimal extends NumberSystem { .. }
Smoggy Snail