I have a class that generates a text file.
It is very simple class that has methods for:
creating file,
opening file
closing file
saving file
writing to file
etc
etc
There are some options i use when writing my text to file such as font size, color and max words.
These options are passed to the constructor.
Should I split this class in to two seperated classes:
fileMaker
fileMakerOptions
and use fileMakerOptions object hold responsibility for text size etc and pass to the constructor of fileMaker?
or would it be best to have file maker encapsulate everything related to making the file including the style options
If your class is simple. And if there are only few options. Then no, you should not create new class. Overrefactoring is very bad.