I have the following design:
- I create a class containing properties (like a very big array)
- Later when I parse the file I want some 'extra parameters/functionality' added, based on the content of the properties in above.
What is the best solution?
- Derive a class with the extra parameters/functionality (problem: need to copy the big array to the new class)
- Decorator pattern? Or is a decorator not meant for adding extra properties/functions?
- Strategy pattern? Since I need properties likely not usable.
- Another solution?