What is enum constructor in Java?

The enum constructor sets the int field . When the constant enum values are defined, an int value is passed to the enum constructor. The enum constructor must be private . You cannot use public or protected constructors for a Java enum .13 Eyl 2018

Sizin İçin Seçtik  What are the limitations of React Native?

Leave a Reply

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