Difference between case object and object

后端 未结 7 503
梦如初夏
梦如初夏 2020-12-02 04:36

Is there any difference between case object and object in scala?

相关标签:
7条回答
  • 2020-12-02 05:16

    It's similar with case class and class ,we just use case object instead of case class when there isn't any fields representing additional state information.

    0 讨论(0)
提交回复
热议问题