Oct 16, 2019 in Design Patterns
Q:

How to prevent cloning of a singleton object?

1 Answer

0 votes
Oct 16, 2019

Throw exception within the body of clone() method.

Related questions

0 votes
Oct 16, 2019 in Design Patterns
0 votes
Oct 16, 2019 in Design Patterns
...