Define an object or a class with only a companion object?
I came across a class defined as :
sealed class SomeClass {
companion object {
large number of members...
}
}
Is there any value in defining it as above or would the simpler solution be :
object SomeClass {
large number of members...
}
1 post - 1 participant
Read full topic