kotlin枚举类和密封类的意义

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

原文地址:https://www.cnblogs.com/soclear/p/14942565.html