I have an object which will be constructed from fields in an SQLite database cursor.
Methods in the object will be used to then test against an object of the same type and return a score. There will be many of these tests executed and I'd like to reuse this object - just re-initialising it from the database each time it's needed. I'm wanting to do this to avoid allocating an excessive amount of memory.
Is there a way to reuse the constructor to rebuild the object each time without creating a new one?
Or do I need to create a public method to populate the fields from a cursor and then call that in the constructor?
thanks, m