3
다음 유형을 상속하려고하는데 컴파일러에서 최종이라고합니다.이 수업은 왜 최종적인 것으로 간주됩니까?
class Dice(private var side : Int)
{
constructor(D : DiceTypesK) : this(D.value) {}
}
class ExplodedDice(private val D : DiceTypesK) : Dice(D)
// ^^^^ this class is final and
// can not be inherited from
내가 의도하지 않았기 때문에 내 유형이 최종적인 이유는 무엇입니까?