A
Amol
Hi
What is the use declaring a dtor as private?
In one of the design tips on net, it is said that this prevents
possibiltiy of creating automatic variable of the class. Is this true?
Can this concept work in a Singleton?
How memory leak can be avoided since delete can not be called because
dtor is private?
Thanks in advance
Amol
What is the use declaring a dtor as private?
In one of the design tips on net, it is said that this prevents
possibiltiy of creating automatic variable of the class. Is this true?
Can this concept work in a Singleton?
How memory leak can be avoided since delete can not be called because
dtor is private?
Thanks in advance
Amol