📜  kotlin 示例中的密封类 - Java 代码示例

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

代码示例2
sealed class Message {
    abstract val messageId: String
}
data class Track(val event: String, override val messageId: String): Message()