Hi,
I want to use design
pattern factory that will return a converter class.
This converter class will call a static method to convert a file from one format to another.
the factory is like that :
After I get an instance of ConversionFile I just call a static method convert() to convert the file.
It works, I could be happy but I am not so satisfied because not so clean.
In fact, it is not clean to call a static method from an instance... so I would like to have something cleaner.
Do you know how can the factory return not an instance but a kind of Class so that I call the static method on a class and not on an instance ?
It cannot return a Class because the Class Class has no convert() method.