sealed class
常见例句
- A sealed class cannot be used as a base class.
密封类别不能当做基底类别使用。 - Because they can never be used as a base class, some run-time optimizations can make calling sealed class members slightly faster.
由于密封类从不用作基类,所以有些运行时优化可以使对密封类成员的调用略快。 - We’ll learn one technique that helps when we discuss sealed class hierarchies in the section called “Sealed Class Hierarchies” in Chapter 7, The Scala Object System.
我们会在《第7章 - Scala 对象系统》的“完成类(sealed class)结构”讨论完成类的结构时学习到其中一种技术。 - In the end it was the halving of premium travel (supersonic, first class and business class) thanks to economic slow-down, terrorism and the Iraq war that sealed its fate.
ECONOMIST: Air travel: After Concorde The 返回 sealed class