Hi Andy,
My Data class has just 1 getInstance method with 0 parameters, so you can get around this (and I didn't use a setter too). What did I do? I created my own interface which extends the given interface and I added 2 methods to this new interface: 1 for initializing (with a parameter containing the database path) and another one for "destroying" (releasing any resources, writing cache back to file,...)
Andy Gertjejansen wrote:I have been reading a lot of your posts... You are a very adept at teaching, when you help people solve their problems you do it in a way that is understandable and you are very humble (in my opinion a must for any teacher) which helps people build their confidence. I was very insecure when I began the project, only a week later, I am almost cocky!
Thanks for these kind words, Andy. Some appreciation now and then is always nice to hear
Concerning the teaching: before I started my Applied Computer Sciences study, I was trying to become a secondary teacher, because being a math teacher was my little boy's dream. After 1.5 years I decided it wasn't my cup of tea and switched to the IT training, a very wise decision in the end
Kind regards,
Roel