Hi All
I'm working on a school-project, and have made an abstract generic class to implement a singleton designpattern on my managerclasses.
However, when I give the GetInstance method it would be nice to force the subclass to hide it's constructor, as it should not be used.
How can I, in my superclass, force my subclass to implement the constructor as private?
Thanks! :-)

Amit GuptaRank #190 · 12.8K reputationPosted Nov 16, 2018, 4:13 AM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Nov 16, 2018, 3:49 PM EST