I'm currently working on an Angular2 app and I have a dilemma regarding how to structure my main class.
For this project, I will need to create a total of 78 instances of a class. The issue is that not all 78 instances share the exact same properties. They are nearly identical except for one specific property, let's say it's "color". Half of these instances have a value for color, while the other half do not.
Here are my possible solutions:
A) Should I divide them into two separate classes? This option feels a bit cumbersome
B) Or maybe I could use a color decorator to differentiate between those with a color value and those without? I believe this might be the most suitable solution, but I could use some clarification
C) Is there something else that I haven't considered?