I have two classes. SpeciesReader
takes files and parses them. Species
stores certain data about a species, which has been parsed from the file.
Currently, I have a method: SpeciesReader.generateSpecies()
, which uses the file with which it was instantiated to create a Species
object. Is this bad practice/design? Should I somehow find a way to move this to a constructor in Species
that takes the filename as an argument?