sealed class
常見例句
- A sealed class cannot be used as a base class.
密封類別不能當(dāng)做基底類別使用。 - Because they can never be used as a base class, some run-time optimizations can make calling sealed class members slightly faster.
由于密封類從不用作基類,所以有些運(yùn)行時(shí)優(yōu)化可以使對(duì)密封類成員的調(diào)用略快。 - 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.
我們會(huì)在《第7章 - Scala 對(duì)象系統(tǒng)》的“完成類(sealed class)結(jié)構(gòu)”討論完成類的結(jié)構(gòu)時(shí)學(xué)習(xí)到其中一種技術(shù)。 - 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