sealed class StockLabel : Label() {
object OutOfStockLabel : StockLabel()
}
I know sealed class in kotlin is implicitly abstract and we will get compile error if doing so. But I saw the usage of the code above, the 'OutOfStockLabel' is declared within the 'StockLabel' sealed class also with 'StockLabel()', the 'StockLabel()' I think should be the type for 'OutOfStockLabel' but is it here for initialization or?
Need some help to understand the code case here.