所有公开日志

所有WHY42公开日志的联合展示。您可以通过选择日志类型、输入用户名(区分大小写)或相关页面(区分大小写)筛选日志条目。

日志
  • 2024年9月19日 (四) 01:36 Riguz 留言 贡献创建了页面Java sealed classes (创建页面,内容为“Goals of sealed classes: * Allow the author of a class or interface to control which code is responsible for implementing it. * Provide a more declarative way than access modifiers to restrict the use of a superclass. * Support future directions in pattern matching by providing a foundation for the exhaustive analysis of patterns. = Syntax = Option1: define inner classes: <syntaxhighlight lang="java"> public abstract sealed class Chinese { final class Sim…”)