Hi Fellow Bloggers,
I'm working on the implementation of the Bodgitt & Scarper assignment. The assignment provides an Interface called DBAccess that must be implemented by the Data class. There isn't any specification requirement prohibiting me from implementing the Data class as a Singleton, but if I implement the Data class as a Singleton, then the class constructor will be "private." This would prevent any automated
test programs, used by the
SCJD test evaluators, from externally instantiating my Data class in order to test it.
I know that I must explain my choice in the Choices.txt document before submitting my assignment.
Is there any bona fide reason that you know of that prevents me from implementing the Data class as a Singleton?
Thanks,
Harry