Which statement is true about sealed classes.
Explanation
Get an explanation when it's available:
Theory
  • Sealed Classes A sealed class may not be directly inherited, except if the inheriting template is defined in the same source file as the inherited class. However, subclasses of a sealed class can inherited anywhere.
    Sealed classes are defined using the sealed modifier.
    Read more: A Tour of Scala: Sealed Classes

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Scala
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести