Just after some opinions on this fairly simple issue.
Say, I have a DocumentParser class, that extracts lots of data from an excel spreadsheet. The data that is captured is modelled with another object, lets say 'DataObject'. The document parser builds a collection of these objects, ready for transfer into a large range of datasets, for further tasks to be performed.
My question is, would you implement the dataset population in the same class as the Document Parser, or adhering to the Single Responsibility Principle, would you make that a new class? If it is a seperate class, how would you expose the collection of data objects to that class, would you simply pass through as a parameter?
Thanks.