What can be in enum?

The enum class body can include methods and other fields . The compiler automatically adds some special methods when it creates an enum. For example, they have a static values method that returns an array containing all of the values of the enum in the order they are declared.

Sizin İçin Seçtik  When would an enum or enumeration be used?

Leave a Reply

Your email address will not be published. Required fields are marked *