Value-specific class bodies in an enum


/ Published in: Java
Save to your folder(s)

In covering the more advanced features of enums, I can't leave out the ability to define value-specific class bodies. That sounds sort of fancy, but all it means is that each enumerated value within a type can define value-specific methods.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.