Companion Objects 发表于 2021-12-17 ReferenceCompanion Objects | Scala Book | Scala DocumentationFactory method pattern - Wikipedia