New We are sorting MAX channels into categories and territories. Read the news
Loading image…

Можно ли указывать конструктор внутри Enum?



Да, конечно. Именно через конструктор и задаются значения внутренних переменных enum.

В качестве примера добавим два поля - ageFrom и ageTo - чтобы обозначить возрастные рамки для каждой роли.

👉 @channel_java_geek
Views: 76
Open in MAX Report an inaccuracy

Report an inaccuracy

Describe what needs fixing. If you have a source, add a link.

You are leaving datool.ru

The link leads to an external website. datool.ru is not responsible for its content — check the address before entering passwords or payment details.

Redirecting in 10 s

Go