Is an enum containing over 50 elements reasonable?
I want to make a card game. A quartets game. For every card I wanted to create an enum of a certain class, i.e. the quartet card class. I'm going to have over 50 quartet cards. So, the enum will consist of more than 50 elements. Do you think this is a reasonable amount for an enum? My experience is that enums only contain a few elements only. The name of the enum's element are like A1, A2, A3, A4, B1, B2, etc. But the attributes of these elements are unique and don't follow a certain order. E.g. Card A1 contains these attributes with their corresponding values: Name: Porsche Max. Speed: 900 km/h Weight: 750kg Card A2 contains these attributes with their corresponding values: Name: Volvo Max. Speed: 400 km/h Weight: 550kg etc. The attributes are signifcant to the game. Also One card contains about 7 attributes. All cards share the same attribute-keys (...but of course not the same attribute-values). Language: Java