public enum ProductCategory {
FOOD, BEVERAGE, DEFAULT;
private final String label;
private ProductCategory(String label){
this.label = label;
}
public String getLabel(){
return label;
}
I want to implement method getLabel() in this enum class, but I am gettin error: "The constructor ProductCategory() is undefined".
I already have constructor that I need, what else I need to write? I tried to write default constructor but again I am getting error.
P.S. I am total beginner in java.