📜  java 密封类 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:04.497000             🧑  作者: Mango

代码示例1
package com.tedblob.numbersystem;
public sealed class NumberSystem
{ }
final class Binary extends NumberSystem { .. }
final class Octal extends NumberSystem { .. }
final class HexaDecimal extends NumberSystem { .. }