I don't understand why the compiler suggests me to convert a sealed class with the subclasses, to objects, let see an example:
sealed class CallState
class SendReceive : CallState()
class SendOnly:CallState()
to this
sealed class CallState
object SendReceive : CallState()
object SendOnly:CallState()
Seems like it is preventing me from creating a not state object, but I don't know what the compiler means.
Thanks for your help.