kotlin枚举类和密封类的意义

枚举类是为了对象可数。
密封类是为了子类可数。

posted @ 2021-06-27 23:03  SoClear  阅读(187)  评论(0编辑  收藏  举报