How to implement a class when one of its properties is an enum variable?
Wed Apr 01 2020 07:05:44 GMT+0000 (Coordinated Universal Time)
Saved by @Toxinta #java #java #enumvariable #class
Define the enum outside the class and then make instance of that enum inside the class as above.The Enum in Java is a data type which contains a fixed set of constants.
https://stackoverflow.com/questions/60963806/how-can-i-implement-a-class-when-one-of-its-properties-is-an-enum-variable
Comments